How to set default value of selectbox to none without showing none as in option in the drop down box

Samad Ahmad
Mega Contributor

Hello! I'm having a little bit of an issue and was hoping someone could shed some light. I have a select box with 3 variables as the choices. When the page loads, I would like for the value of the select box to be none or blank. I attempted to do this by setting the default value to none, but this presents the problem of none being added to the selectable choices. Is there any way to do this without adding none as a choice to the select box? Is it possible to create a label that shows until a choice is selected? Thank you in advance!

2 REPLIES 2

-O-
Kilo Patron
Kilo Patron

The solution to that is making the field mandatory.

philipp_haas
Tera Expert

Hi @Samad Ahmad,

we had a similar situation when we needed to force the user to do a selection but not having one of the actual Question choices preselected.

 

This can be solved by setting "Include none" to TRUE and making the field mandatory.

Doing this, --None-- will be the default selection but changing the selection to any of the defined Question Choices will always be mandatory.