Forms: select field with blank option

greetings,

is there a way to include a blank or empty option as the first option in a required select field in forms? right now, the select fields i have created begin with the first option and i would like to have a blank/empty option as the first option so that the user is forced to select an option.

thanks in advance.

yours,

steve

I think you can basically do what you want, with one caveat I’ll cover at the end. Per this support doc - Forms - LiveWhale Support

When adding options for checkboxes, radio buttons, and select menus, you’ll add your options as individual lines. You can also customize the data names for these options, by separating the label (Golden State Valkyries) from the data name (valkyries) with a vertical pipe character (|).

So you could create your select options like this:

Choose One|
Option One|value1
Option Two|value2

The lack of a value to the right of the pipe on the first row will give that option a value of ‘’. And a form cannot be submitted if a required select does not have a value.

The only problem I saw when testing this is that LiveWhale does not seem to change the empty select’s label color to red when submitting. The form can’t be submitted, and it gives the “You must fill out all required fields” message. It just doesn’t visually indicate that the select field is in error.

1 Like

perfect. thanks, jon!