Developers · Forms
Default Payload
Last updated 2 November 2026
The
Why and where to use 'default_payload'
The
Another key attribute of
Form variable
Liquid Template provides a
Example
Default Payload can help set action timestamps, states, or modification of request state. In the example below, the custom property
---
...
fields:
properties:
cancelled_at:
validation:
presence: true
default_payload: |-
{%- assign date_now = 'now' | date: '%d-%m-%Y %H:%M:%S' -%}
{
"properties_attributes": {
"cancelled_at": "{{ date_now }}"
}
}
---Record example
Here is another example demonstrating the use of default payloads:
---
...
fields:
properties:
some_custom_property:
validation:
presence: true
default_payload: |-
{
"properties_attributes": {
"some_custom_property": "New value for this property"
}
}
---