Forums

Drop down list validation not working

GreyHead 08 Jun, 2009
Hi Astrid,

To make a drop-down list required you must add a 'null' option at the beginning of the list e.g. <option value=''>--?--</option> otherwise the first option is takes as selected and so the 'required' criterion is met.

To change the messages simply, add them into the title attribute of the input e.g. title='Dit veld is vereist'

Bob

PS The MooValidation file is no longer used
Astrid 08 Jun, 2009
Thx Bob!
It works now!
I us Chronoforms a lot, so changing language in .js file is easier than adding it into the form itself. But anyway: thanx for the tip.
This topic is locked and no more replies can be posted.