# Multi Text

Multi-Text field supports as many fields as one might need. Adding and removing them is as simple as point and click.

# Arguments

Name Type Default Description
type string multi_text Value identifying the field type.
add_text string Add More Text to display on the Add button
show_empty bool true Flag that permits the display of empty text boxes.

# Build Config

Build a Custom Configuration →
Changes you make to this form will be reflected in the generated code.
Field visibility requirements.

Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
    'type' => 'multi-text'
) );

# Example Config

Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
    'type' => 'multi_text',
    'title' => esc_html__('Multi Text Option - Color Validated', 'your-textdomain-here'),
    'validate' => 'color',
    'subtitle' => esc_html__('If you enter an invalid color it will be removed. Try using the text "blue" as a color.  ;)', 'your-textdomain-here'),
    'desc' => esc_html__('This is the description field, again good for additional info.', 'your-textdomain-here')
) );

# Example Usage

This example in based on the example usage provided above. Be sure to change $redux_demo to the value you specified in your opt_name argument.

global $redux_demo;

echo 'First Text Entry: ' . $redux_demo['multi-text'][0];
// The array number of additional entries will increase by one.