Statements - Statements
Component displaying statements

Component properties
Statement list (section Basic properties)
items
List of defined statements to display. The button Add statement
opens the drawer Statement list used to define "items". Statements are created in Statement editor.
masterCheckbox list (section Basic properties)
masterCheckboxes
List of defined master checkboxes.
The availability of this functionality depends on the license and may not be available in all deployments.
The functionality is described in more detail in Multiple master checkboxes in the statements component and Visibility of a single master checkbox.
Value of the checked statement (section Basic properties)
valueYes
The value the statement takes when it is checked - by default, if no other return value is set, the value "true" is returned.
Value of the unchecked statement (section Basic properties)
valueNo
The value the statement takes when it is unchecked - by default, if no other return value is set, the value "false" is returned.
Condition for collapsing/expanding the component (section Other)
expandableCondition
A condition for which, under or next to the main checkbox (depending on the implementation), text for collapsing/expanding the entire statements component should be displayed. When set to "false", the component is expanded and cannot be collapsed (the collapse text is not displayed). If the condition is empty or invalid, the value "false" will be evaluated. If the property is unconditionally set to "false", there is no point in setting the field "Condition for the default expanded component", because the entire content will always be displayed.
For conditions that use other components, appropriate listeningmust be defined on the component.
Condition for the default expanded component (section Other)
expandedCondition
When the field Condition for collapsing/expanding the component is set to "true", the property determines whether the component is expanded or collapsed by default. The statements component is expanded by default for a value of "true". If the condition is empty or invalid, the value "true" will be evaluated.
For conditions that use other components, appropriate listening must be defined on the component.
More information about component properties: Common component properties
Statement title
The statement title comes from the key defined in the Translations. The statement content comes from the artifact Formatted content (details -> Creating and attaching the Content artifact). One or more controls can be assigned to the content of each statement. The entire component as well as the content of a single statement can be expandable (depending on flags). Statements can have one master checkbox (the main checkbox of the component controlling the statement checkboxes) or several master checkboxes (description → Multiple master checkboxes in the statements component).

Data model
The response to each statement control is stored separately in the data model. In the field Data model key you should indicate the model node and under it create fields named according to the business identifiers of the controls (mid) assigned in the Statement editor. The fields are optional – more information in Data model on the interface.
The selected control has the value
true, and an unselected onefalse. The properties Value of the checked statement and Value of the unchecked statement do not change the values stored in the model.When the form opens, responses are read from the data model: the controls whose fields have the value
true.
Example: the component has three controls with identifiers termsAcceptance, marketingConsent and profilingConsent. In the component, set Data model key applicant.consents, and fields were created in the model only for the first two controls:
The user accepts the terms and does not give marketing consent. After saving the application, the model contains:
The response to the control profilingConsent remains on the form, but does not get into the data model.
Last updated
Was this helpful?
