Support

Account

Home Forums Backend Issues (wp-admin) Radio field default not working

Unread

Radio field default not working

  • I have a radio field that looks like this:

    array (
    	'key' => 'field_53c8bdf027040',
    	'label' => 'Select quantity',
    	'name' => 'gpo_select_qty',
    	'type' => 'radio',
    	'required' => 1,
    	'choices' => array (
    		2 => 2,
    		3 => 3,
    		4 => 4,
    	),
    	'other_choice' => 0,
    	'save_other_choice' => 0,
    	'default_value' => 3,
    	'layout' => 'horizontal',
    ),

    The default should be 3 when no value exists in the db for this field but instead it’s always 2. For other radio fields the default works just fine. Is there some kind of bug or am I doing something wrong?

Viewing 1 post (of 1 total)

The topic ‘Radio field default not working’ is closed to new replies.