App Connect Form Validator Support Product Page
Solved
Select validating without selection
Reported 5 years ago
1
has this problem
5 years ago Robin Schafer posted:
I am trying to validate a Select option in a form.When I submit the form, the Select is always valid because one of the options is selected by default.
I tried this with first option disabled, then the second option becomes selected and it is still valid.
Is there any way to bypass the first option and force user to make a selection other than default?
----- Also -----
When adding the required option to form elements.
The class required is sometimes blank [required=" "] and sometimes shows as required="123". Is there a reason for this?
Replies
Replied 5 years ago
5 years ago Teodor Kuduschiev replied:
Just remove the value attribute from your first option. This will make it invalid.
An empty option value is considered valid, as it sends an empty string.
An empty option value is considered valid, as it sends an empty string.
Replied 5 years ago
5 years ago Robin Schafer replied:
Thanks, that was an easy fix.