Input Field – multiple_select

Input Field – multiple_select

You can use the multiple_select input field to allow users to select multiple options from a dropdown of pre-defined values. See the below example on how you can use multiple_select input field –
ExampleCopy to Clipboardarray(

'type' => 'multiple_select',

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

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

'param_name' => 'styles',

'value' => array(
'green' => esc_attr__( 'Green', 'fusion-builder' ),
'darkgreen' => esc_attr__( 'Dark Green', 'fusion-builder' ),
'orange' => esc_attr__( 'Orange', 'fusion-builder' ),
'blue' => esc_attr__( 'Blue', 'fusion-builder' ),
'red' => esc_attr__( 'Red', 'fusion-builder' ),
),

)​x 1array(2​3  'type'        => 'multiple_select',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'  => 'styles',10​11  'value'       => array(12        'green'     => esc_attr__( 'Green', 'fusion-builder' ),13        'darkgreen' => esc_attr__( 'Dark Green', 'fusion-builder' ),14        'orange'    => esc_attr__( 'Orange', 'fusion-builder' ),15        'blue'      => esc_attr__( 'Blue', 'fusion-builder' ),16        'red'       => esc_attr__( 'Red', 'fusion-builder' ),17   ),18​19)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.

发表回复

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