# 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::addField( 'OPT_NAME', 'SECTION_ID', array(
    'id'          => 'opt-date',
    'type'        => 'date',
    'title'       => __('Date Option', 'redux-framework-demo'), 
    'subtitle'    => __('No validation can be done on this field type', 'redux-framework-demo'),
    'desc'        => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
    'placeholder' => 'Click to enter a date'
) );

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