Copy link to clipboard
I don't think the default property options allow for this in Adobe, so looking for anyone who can help me with a script and where I would place that script in the dropdown field properties.
I have a dropdown fields on a form labeled "VersionType" that I have indicated in the properties to be required. For this dropdown field I have 4 dropdown options to choose from:
"-Please Select Version-"
I have the "-Please Select Version-" option as the default selection for this dropdown.
Essentially I'd like to force the user to be forced to select something other than that default value ("-Please Select Version-") is selected before a user can submit the form. I'm trying to avoid receiving a form back with an incomplete dropdown responses of "-Please Select Version-" and user not having selected one of the correct available options.
Also I have the "Highlight Existing Fields" form function enabled, but is there a way that if a user attempts to submit the form, that it can highlight only those required fields that are incomplete/not complete vs highlighting all the required fields in the form even if they have been completed? This way user knows exactly which ones exactly are left to complete vs scanning whole doc.
Appreciate help thanks!
Copy link to clipboard
Unfortunately, drop-downs are not validated in the required fields validation. You will need to use a script to do it.
Thanks. I'm still very new with no formal training and doing my best to learn custom scripting, its been a lot of piecing together from various forums. Do you have a scripting template you can share that I can then edit with my necessary labeled fields to hopefully get this to work?
My main concern is for the dropdown validation to work the function to show user any missing required form fields is not as big a deal to me as being able to force use to make a dropdown choice other than "-Please Select-" lol.
You don't need to specify the fields, the script can pick up all the required fields in the file and check their values. I've posted a function that does that to the forum multiple times in the past. Try searching for "validateRequiredFields". If you can't find it I'll re-post it.
Hello, could you please re-post the function, as I cannot seem to find it in the forum even with search you proposed.