Data fields are contract variables (also known as placeholders, custom fields, tags, etc.) that you can use in contract product tables, text and image, and form sections.
You can set the values for the data fields in a contract or at the template type level. The behavior of these two operations is different, so it is important to understand the difference. Please, see the Create a contract with data fields tutorial for more information.
The table below displays all the attributes available for each data field:
|_links||object||Contains links to endpoints associated with this data field. See Data fields links.|
|active||boolean||Indicates whether the data field is active.|
Note: Only active data fields can be used in a contract or template.
|custom_id||string||A custom identifier you can use to address the data field through the API. Each |
|description||string||The description of the data field.|
|id||integer(signed_integer_id)||The ID of the data field.|
|name||string||A short descriptive name for the data field.|
|placeholder||string||Placeholder text displayed in the data field UI when the value is absent.|
|source||string(enum)||Indicates the source of the data field. See Source.|
|value||string||The value of the data field. Text values are limited to 1024 characters.|
If the data field's type is a checkbox, then the value can be 0 (false) or 1 (true). See Value.
_links object contains links to the endpoints associated with the data fields.
|user||Indicates that the data field was created by a user either via the API or via the Oneflow application.|
|system||Indicates that the data field was created and is used by one of the integration extensions.|
Data fields where
source=systemcannot be updated. An attempt to update such data fields will return a 200 OK response, but the attribute will not be updated.
|checkbox||If the data field attribute value is |
If the data field attribute value is