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(23 'type' => 'multiple_select',45 'heading' => esc_attr__( 'Select styles', 'fusion-builder' ),67 'description' => esc_attr__( 'A short description of the field.', 'fusion-builder' ),89 'param_name' => 'styles',1011 '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 ),1819)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.