Reset Form field not working with dropdown number validations
Copy link to clipboard
Copied
I have a PDF form which has a lot of dropdown fields with values 0 - 5, with 0 being the default. I then wanted to make sure that if someone clicked/tabbed to the field, and forgot to change it from 0, get a notification that it needed to be a number between 1 - 5. when I tested out the form, for some reason, anytime I clicked on the "clea form" (reset form) button, the form would goto that field and give me the validation message stating a number 1 - 5.
Now iI'm not sure why that would be, since I know the "reset form" function, just resets the fields to their default values, so wwhy would this outcome be the case for my example?
Is there a way I can accomplish this? if so, how??
Thanks for your help.
Copy link to clipboard
Copied
Where does you use the script?
Copy link to clipboard
Copied
I dont use any scripts for the number validation or clear forms.
I use the built in validation field range under properties for the 1 - 5, and then I just have a button with the reset actuon on mouse down is to reset the form (all fields selected)
Copy link to clipboard
Copied
There's no need to add a Validation setting to a drop-down, unless you allow the user to enter custom values.
Copy link to clipboard
Copied
I agree, but they want the form to make it mandatory to have them select a 1 - 5, before moving on to the next cell, since this form is not being submitted anywhere, so simple required fields won't help, just because they are going to have staff just print or save the form locally.
Copy link to clipboard
Copied
That can't work. If you define a default value that doesn't fall within the valid range then resetting the field will cause an error message to appear. You need to re-think about how it works.
Copy link to clipboard
Copied
ok thank you.

