Defines a container that holds a set of form elements that can be expanded, collapsed, or displayed together.

Referenced by: formInfo

Properties

PropertyDetails
descriptionA string that describes the element in detail.
formElements[]An array of Form Element objects that represent an ordered list of form elements. Nested group elements are not supported.
Array of items of the following types:
initialStateDefines if the group should be expanded or collapsed when the form is initially displayed. If not provided, the default value is expanded
Valid values:
  • collapsed
  • expanded
labelA string value indicating what the element represents.
typeString value indicating which type of element to use.
Valid value of this property group
visibilityExpressionA reference to an Arcade expression that returns a boolean value. When this expression evaluates to true, the element is displayed. When the expression evaluates to false the element is not displayed. If no expression is provided, the default behavior is that the element is displayed.

Example

{
"initialState": "expanded",
"description": "Add property-specific details",
"label": "Property Details",
"type": "group",
"visibilityExpression": "expr0",
"formElements": [
{
"type": "field",
"fieldName": "damageType",
"label": "Type of damage",
"requiredExpression": "expr1",
"inputType": {
"type": "combo-box"
}
},
{
"type": "attachment",
"attachmentKeyword": "structure-image",
"description": "Take a photo of the structure",
"filenameExpression": "StandardizeFilename(`${$formElement.attachmentKeyword}_${Text(Now(), \"YMMDDHHmmss\")}`)",
"label": "Photo of structure",
"inputType": {
"type": "image",
"inputMethod": "any"
}
},
{
"type": "relationship",
"relationshipId": 0,
"displayCount": 3,
"displayType": "list",
"label": "Previous Inspections",
"orderByFields": [
{
"field": "inspectionDate",
"order": "desc"
}
]
}
]
}