# Date

The Date field displays the popup jQuery datebox when clicking on the text input.

# Arguments

Name Type Default Description
type string date Value identifying the field type.
placeholder string The default text to display in the text input when no value is present.

# 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' => 'date'
) );

# Example Config

Redux::set_field( 'OPT_NAME', 'SECTION_ID', array(
    'id'          => 'opt-date',
    'type'        => 'date',
    'title'       => esc_html__('Date Option', 'your-textdomain-here'), 
    'subtitle'    => esc_html__('No validation can be done on this field type', 'your-textdomain-here'),
    'desc'        => esc_html__('This is the description field, again good for additional info.', 'your-textdomain-here'),
    'placeholder' => 'Click to enter a date'
) );

# Example Usage

This example is 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 '' . $redux_demo['opt-date'];