Forums

problems with validating dropdown menu

marco 007 12 Sep, 2009
I has made a dropdownmenu and want to validate it.
The code is:
<select name="evenement" title="Maak uw keuze!">
        <OPTION VALUE="geen_selectie_gemaakt">---- Maak hier je keuze ----</OPTION>	  
        <OPTION VALUE="adviesbezoek">Adviesbezoek</OPTION>
	  <OPTION VALUE="huiskeuring">Huiskeuring</OPTION>
  	  <OPTION VALUE="vijverkeuring">Vijverkeuring</OPTION>
	  <OPTION VALUE="excursie">Excursie</OPTION>
	  <OPTION VALUE="diversen">Diversen</OPTION>
</select>


The dropdown menu starts with the selection '---- Maak hier je keuze ----' (in English: make your choice here).
This one is the 'empty' choice. and when you do not fill in one of the other choices, I want to show the title message "Maak uw keuze!" (in English: make your choice).
But it isn't working. When you leave it blank, there is no message and the form is send by mail.
I'm working with the newest release.

Regards,
Marco.
GreyHead 12 Sep, 2009
Hi Marco,

Remove the value from the first option, ChronoForms has no way of knowing that it's not a valid result:
<OPTION VALUE="">---- Maak hier je keuze ----</OPTION> 

Bob
marco 007 12 Sep, 2009
YES.......πŸ˜€ πŸ˜€

That is the solution, it works fine now!

Thanks for you helpπŸ€”

Marco.
This topic is locked and no more replies can be posted.