Select Ajax

The Select Ajax field will get data that match you input values and displays information in a drop-down field with multi-select formats.

select-ajax1

Attributes

AttributesTypeRequiredDescription
idstringRequiredUnique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestringRequiredDisplays title of the option.
subtitlestringOptionalSubtitle display of the option, situated beneath the title.
descstringOptionalDescription of the option, appearing beneath the field control.
typestringRequiredValue identifying the field type. For Select Ajax field we set the value select_ajax
defaultstringOptionalKey value from the options array to set as default.
optionsarrayRequiredArray of options in key pair format. The key represents the ID of the option. The value represents the text to appear in the selector.
colintOptionalThe proportion of columns that display field on 12 columns per row.
multipleboolOptionalFlag to set the multi-select variation of the field. Default value is false
datastringOptionalValue to populate the selector with WordPress values.  Accepts: sidebar menu taxonomy post types
data_argsarrayOptionalWordPress arguments for the specific data to be retrieved.
placeholderstringOptionalText to display in the selector when no value is present.
allow_clearboolOptionalAllow to clear choices by doble click. Default value is false

 Example Declaration