Validation not working on 'Country' combobox
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/forms.html
http://www.quickandeasywebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.quickandeasywebbuilder.com/f ... =12&t=1901
MUST READ:
http://www.quickandeasywebbuilder.com/forms.html
http://www.quickandeasywebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Validation not working on 'Country' combobox
I have set HTML 5 validation on a Country combobox, with Selection Required and Disallow First Choice set. The form validates and is submitted even if no choice is made...
Re: Validation not working on 'Country' combobox
To be able to help you, I need to see what you have done.
Do you have a demo project?
Do you have a demo project?
Re: Validation not working on 'Country' combobox
Thanks, I've just emailed you.
Re: Validation not working on 'Country' combobox
For HTML5 validation, the value of the first item should be empty.
Re: Validation not working on 'Country' combobox
Thanks - I've now tested that and can confirm that it's necessary to edit the default 1st line of the country list:
from 'Please select your country, Select, Yes'
to ' , , No'
...for HTML5 validation to work. Though that does mean that the help text 'Please select your country' is obviously no longer displayed.
However isn't the second choice in the combobox validation options - 'disallow first choice' - supposed to ignore the content of that first line?
from 'Please select your country, Select, Yes'
to ' , , No'
...for HTML5 validation to work. Though that does mean that the help text 'Please select your country' is obviously no longer displayed.
However isn't the second choice in the combobox validation options - 'disallow first choice' - supposed to ignore the content of that first line?
Re: Validation not working on 'Country' combobox
First note that HTML5 is standard browser functionality so I cannot control the way it work. it just works this way.
If you do not set a value for the first item (in your case Please select your country') then a (modern) browser will not accept it as a valid selection.
If you do not set a value for the first item (in your case Please select your country') then a (modern) browser will not accept it as a valid selection.
Re: Validation not working on 'Country' combobox
Cool.
Maybe it would be worth changing the default to avoid the problem, or adding the note the manual?
Maybe it would be worth changing the default to avoid the problem, or adding the note the manual?