Form Builder – Input Variables
Compose Enterprise is going through a design update. The illustrations on this page might be of the old design, but the information is up to date. Thank you for your patience during this update!
Form input variables can be used to connect a form with relevant option sources and services. These can be added under the Input Variables section in the Form Builder. The variables created for a form must be mapped to the correct element in the Workflow Builder.
Input variables
Input variables | ||
---|---|---|
Create | Creates an input variable. | |
Delete | Created input variables can be deleted by selecting the variable you wish to delete, then pressing Delete. | |
Modify | The Modify button allows you to change the settings for the input variable. See Input variable properties table below. |
Input variable properties
Input variable properties | |
---|---|
Name | The given variable name. There are rules as to which names it can take. It can't e.g. start with a capital letter, contain white-space characters and must have a length of 1 to 40 characters. |
Optional | A form input variable can be set as mandatory or optional. If the input variable is set as not optional, it will be mandatory to map the input variable in the workflow builder. A workflow cannot be versioned if a mandatory form input variable is not mapped. If an input variable is set as optional, the workflow can be versioned without mapping the input variable. |
Type | Data type variable - Select if the input variable will be used when making Generic Service calls. Option source variable - Select if the input variable will be used to override the options for a question. The input variable can be used under Auto populate Value Question/Form Option Source/Overridden by input Variable for value input questions or under Form Option Source/Overridden by input Variable for single/multiple select questions. CNG Service variable - Select if the input variable will be connected to a CNG Service. |
Validation | This can be String, Integer, Decimal or Date by default in addition to customized validations you've created in the validation builder. Changes in the data type have to correspond with the form question connected to the input variable. Only relevant for option source and data type variables. For more info about validations, see the Validation builder section. |