Input Field – radio_button_set

Input Field – radio_button_set

You can use the radio_button_set input field to allow users to select an individual option from a list of the pre-defined options. See the below example on how you can use the radio_button_set input field –
ExampleCopy to Clipboardarray(

'type' => 'radio_button_set',

'heading' => esc_attr__( 'Select styles', 'fusion-builder' ),

'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),

'param_name' => 'display_radio',

'value' => array(
'yes' => esc_attr__( 'Yes', 'fusion-builder' ),
'no' => esc_attr__( 'No', 'fusion-builder' ),
),

)​x 1array(2​3  'type'        => 'radio_button_set',4​5  'heading'     => esc_attr__( 'Select styles', 'fusion-builder' ),6​7  'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),8​9  'param_name'  => 'display_radio',10​11  'value'       => array(12        'yes' => esc_attr__( 'Yes', 'fusion-builder' ),13        'no'  => esc_attr__( 'No', 'fusion-builder' ),14   ),15​16)Parameters type
( string ) input type. heading
( string ) Setting title. description
( string ) Short description about the setting field. param_name
 ( string ) Attribute name to be used in the shortcode. value
( array ) Array of pre-defined values.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注