drop down question

eyalher

New Member
Hi friends,

This forum is great and I will be very happy if you will help me with another question:

I want to use the dropdown element in a form.
The problem is that it saves the first choice "please select from the list" every time.

How can I prevent the situation that it saves the first choice if the user did not choose something from the list?
also I dont want that this dropdown will be required.


Eyal
 
I do this way :
Null => Please make your choice [default]
1 => The first selected value
2 => The second selected value

and so on .... If value ==! Null so the user made a choice and this is not a require field ;)
 
Arf perhaps, You don't want any value (even Null) if the user don't make selection that's it ?
if yes, you could do this by having an empty value for the "Please selected" by default !
 
hi ,

I insert "Null" for value and also make option 1 ("please select....) to default but in the list its still countinue to take the label and show it.

what else i can do to solve it ?
 
Huuum so your looking for having the element's cellule emty INTO the list's view, if the user don't selected anything on the form that's it ?

If it's this way, the calc element will be your choice for this.
Let explain the rull :

Into the form :
You could have so the dropdown let fully name it : [table___dropdown]
make this element don't publish into the list (under the element list filter by the right list),
then add a calc element to the form (hide one)
into the More tab you could have this sorte of script :
PHP:
$dp_value = '{table___dropdown_raw}';
if ($dp_value != "Null"){return "$dp_value";}else{return " ";}
Only on calc save to No in the calc's cfg !
 
Back
Top