Black Friday Sale! Use promo code: DMXBF20 valid only for hours
App Connect Form Validator Support Product Page
Select validating without selection
Reported 23 Oct 2019 15:19:54
23 Oct 2019 15:19:54 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?
Replied 23 Oct 2019 16:23:29
23 Oct 2019 16:23:29 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.
Replied 24 Oct 2019 02:10:23
24 Oct 2019 02:10:23 Robin Schafer replied:
Thanks, that was an easy fix.
Reply to this topic