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(23 'type' => 'radio_button_set',45 'heading' => esc_attr__( 'Select styles', 'fusion-builder' ),67 'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),89 'param_name' => 'display_radio',1011 'value' => array(12 'yes' => esc_attr__( 'Yes', 'fusion-builder' ),13 'no' => esc_attr__( 'No', 'fusion-builder' ),14 ),1516)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.