Drop Down validation Error

gepponline 07 Aug, 2014
Hi!
I have a problem with a drop down element in my form.
th code of the element is this one:
<div class="ccms_form_element cfdiv_select" id="adulti1_container_div" style=""><label>*N° adulti</label><select size="1" class=" validate['required']" title="" name="adulti">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>


When I fill my form selecting 1 it give me a validation error "select a value". No error with other values.
I've tried making 1 the selcted value but nothing change, if i select 1 it gives me error.
So it seems like it doesn't like only the 1 option.
Someone can help me to solve this problem?
gepponline 07 Aug, 2014
I forgot...
Here you can find the form:
http://www.oasigalbuserabianca.it/prenota-alloggi.html
GreyHead 09 Aug, 2014
Hi gepponline,

I suspect that may be a bug in the validation code, please try adding this as the first option and see if that fixes it
<option value='' >selezionare</option>

Bob

Bob
Max_admin 13 Aug, 2014
The first value in a dropdown (in v4) is considered an invalid value, so you should always have an empty value as Bob has suggested!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.