Field reference
Field reference
Every field uses a consistent definition shape and is sanitized according to its saved value type.
#Field anatomy
[
'field_key' => 'heading',
'label' => 'Heading',
'type' => 'text',
'default_value' => '',
'required' => true,
'location' => 'default',
]#Available field types
Choose a field below for its value shape, complete definition, sanitization behavior, and rendering example.
#Conditional logic
'conditional_logic' => [
['field' => 'show_cta', 'operator' => '==', 'value' => true],
]Conditional logic changes editor visibility. It is not a security control and does not remove an already-saved value.