Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

how to set default value in radio buttons?

$
0
0

Replies: 0

I use radio buttons to set one of two values.
Default value should be the first option and only occasionally the second option is valid.
When I start a new event, none of the options is ticked and I can save the event without ticking either of them. Even when the data field is set as required! (which looks like a bug on its own)

It seems the only way to set a default value is by adding an empty option. For a new event the empty option is ticked, no matter where it is positioned in the list of values.

How can I set a radio button value as default?

Frank


Viewing all articles
Browse latest Browse all 59525

Trending Articles