Custom Fields
Re-Envisioned
Support General Set Selected by default in Radio box

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 2 years, 3 months ago.

  • Creator
    Topic
  • #4415

    MD3
    Participant

    I have this code

    array(
    				'id'      => $prefix.'featured_product',
    				'name'    => 'Featured Product',
    				'type'    => 'radio',
    				'options' => array(
    					'yes' => 'Yes',
    					'no'  => 'No',
    				),
    			),

    I want to make “No” as selected by default.. how to do it?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #4431

    Anh Tran
    Keymaster

    Just add 'std' => 'no' to the field 😉

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.