Questionnaire Designer: Difference between revisions

Jump to navigation Jump to search
Line 666: Line 666:
* '''On Can Execute''' rules configure when a command is available.
* '''On Can Execute''' rules configure when a command is available.
* '''On Execute''' rules configure what happens when a command is executed.
* '''On Execute''' rules configure what happens when a command is executed.
* '''On Create''' rules are executed before a questionnaire instance is created. They can be used to define additional variables which can be used in the reuse fetch. This can ensure that inspectors can select from a relevant list of answered questionnaires.


In the rules editor, add rules and conditions using the toolbar to create your rule script.
In the rules editor, add rules and conditions using the toolbar to create your rule script.
Line 675: Line 676:
* '''Variable''' – define a variable that is added into the Property selector of the rule. This variable will be only used for the specified rule. Remember that you can only use this variable after the step where it was defined. To enter a variable into the workflow after defining it, just click elsewhere the variable editor. To delete it, click on the variable and choose the delete option in the editing line.
* '''Variable''' – define a variable that is added into the Property selector of the rule. This variable will be only used for the specified rule. Remember that you can only use this variable after the step where it was defined. To enter a variable into the workflow after defining it, just click elsewhere the variable editor. To delete it, click on the variable and choose the delete option in the editing line.
* '''Shared variable''' – add a variable that covers the entire questionnaire form
* '''Shared variable''' – add a variable that covers the entire questionnaire form


; Conditions group
; Conditions group

Navigation menu