A group of fields which together define a custom object. May either define a single object or a list of objects.
| Name | Type | Description |
|---|---|---|
| is_valid | Boolean | True if there is at least one custom object |
| value | String | The same as what you would see when inspecting this object. For fieldset fields you do not typically care about this - use objects or fields instead |
| allow_multiple | Boolean | True if the fieldset allows multiple objects to be entered. Changes the way some of the other fieldset properties work |
| objects | list | A list of custom data objects defined by this fieldset. Only if allow_multiple is true |
| fields | list | A single custom data object defined by this fieldset. Only if allow_multiple is false |
| field_id | String | The identifier for this field |
| label | String | The label for this field |
| output | String | Same as value. May include additional markup in the editor preview to make it easier to edit content |
Field containing either a single custom object or multiple custom objects - depending on whether allow_multiple is true. You may also treat this object as a list containing all of the child objects (if allow_multiple is true) or fields (if allow_multiple is false) which may be iterated using a {% for %} loop. For more details see the examples below: If allow_multiple is false, individual fields may be accessed using the {{ object.keyName }}, {{ object["keyName"] }}, {{ object.fields.keyName }}, or object.fields["keyName"] syntax. You may also treat this object as a list containing all of the fields which may be iterated using a {% for %} loop. For more details, see the examples below:
object
{{ data }}
list
boolean
Demonstrates how to reference a fieldset field in 5 different ways. These examples assume that the fieldset does not allow multiple objects. If the fieldset allows multiple objects, you would need to reference entity.fieldset[0] instead of entity.fieldset.
5 Ways to Reference a Fieldset Field
CopyReference as a property
Reference as a dictionary key
Reference as a property of the fields object
Reference as a dictionary key of the fields object
List all fieldset fields
Demonstrates how to list all objects in a fieldset field.
List all objects in a fieldset field
CopyDemonstrates how to list all values in a fieldset field.
List all values in a fieldset field
Copy