Skip to content

sections

Defines the visible state of named form sections. Assign a supported form-section state such as Hidden.

Type

{ [name: string]: string }

Declaration

1
 { [name: string]: string } $Form.sections

Examples

Hide a section based on form data

1
2
3
if (!$Xml.EvaluateBoolean('RequiresShipping')) {
    $Form.sections['Shipping'] = 'Hidden';
}