Field reference

Field reference

Every field uses a consistent definition shape and is sanitized according to its saved value type.

#Field anatomy

PHP
[
    '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

PHP
'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.

Framework version2.0.0
PHP requirement8.0+
Documentation updatedAugust 2026