# 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::addField( 'OPT_NAME', 'SECTION_ID', array(
    'id'=>'multi-text',
    'type' => 'multi_text',
    'title' => __('Multi Text Option - Color Validated', 'redux-framework-demo'),
    'validate' => 'color',
    'subtitle' => __('If you enter an invalid color it will be removed. Try using the text "blue" as a color.  ;)', 'redux-framework-demo'),
    'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')
    ),
) );

# 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.