Validate that there is no default option selected in dropdown list (PDF)

New Here ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

Hello ! I am fairly new to Javascript coding and would need help in the validation of my form.

Basically, I have a form with multiple required dropdown lists and the default option is selected to '' '' (just a space). 

I have a submit button at the end of the form that validates if all the required fields are filled. However, when a dropdown list stays on the default option '' '' it still lets the user submit the form. 

What code (and where) should I use in order to validate that the required dropdown lists are not on the default option ?

 

*I know that there are multiple similar subject, but I have been looking for hours now and cannot seem to find the code I should be using and where I should be using it in my form*

 

Thank you so much for your help!

TOPICS
How to , JavaScript , PDF forms

Views

62

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

LATEST

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines