Text Field

The Text Field displays an input field for any form of text such as pattern, email, date time, range.. and optionally validates the text before saving the value.

For example:




idstring RequiredUnique ID identifying the field. It will be used as meta_key. Must be different from all other field IDs.
titlestring RequiredDisplays title of the option.
subtitlestring OptionalSubtitle display of the option, situated beneath the title.
descstring RequiredDescription of the option, appearing beneath the field control.
typestring RequiredValue identifying the field type.
For Text Filed here we set value text
input_type stringOptionalThe input element with a type attribute.
default stringOptionalDefault value of the custom field.
placeholder stringOptionalA short hint that describes the expected value of an input field.
pattern stringOptionalObjects that can match arbitrary character sequences.
col intOptionalThe proportion of columns that display field on 12 columns per row.
clone boolOptionalCreate copys of an object.
Default value is false.
sort boolOptionalAllow your users to drag/drop text blocks and by so doing reorder the results.
Default value is false

Example Declaration