Copy link to clipboard
Copied
Need help to get a JavaScript on my form.
I am currently working on a form for my company and need to set a minmum value for one of my fields. I don't know anything about JavaScript but I just need a simply script that can just set the field to greater than 5 and anything less than 5 will not show up. Please help!
Copy link to clipboard
Copied
As validation script of field use this:
if(event.value < 5) event.value = "";
This is just basic code to empty field if value is less then 5.
You can also consider to use alert if user input number less then 5 so He/She knows whats going on.
If you try to paste code into validation and have trouble, try input code manually.