1,545
edits
Marek Rodak (talk | contribs) |
Marek Rodak (talk | contribs) |
||
Line 629: | Line 629: | ||
|- | |- | ||
| [[On Can Execute]] | | [[On Can Execute]] | ||
| This rule is executed when a command is about to be displayed. Use it to control in which situations users can see and use the command, so that you can hide this command in situation, when its action is not suitable. See [[Form commands]] for more information and examples. | | This rule is executed when a command is about to be displayed. Use it to control in which situations users can see and use the command, so that you can hide this command in situation, when its action is not suitable. | ||
See [[Form commands]] for more information and examples. | |||
|- | |- | ||
| [[On Execute]] | | [[On Execute]] | ||
Line 643: | Line 644: | ||
| This rule is executed when an existing instance of a repeatable group is deleted. | | This rule is executed when an existing instance of a repeatable group is deleted. | ||
|} | |} | ||
They can be used to populate variables for the reuse fetch. Requires [[Questionnaire_Designer#Rules_version|version 3]] (or later) of rules and [[Releases/Spring_2022|version 15.0]] (or later) of the mobile app. | |||
* '''On Load''' rules are executed when the questionnaire form is displayed on the screen. | * '''On Load''' rules are executed when the questionnaire form is displayed on the screen. | ||
* '''On Change''' rules are executed whenever users change any value. <small>On Change rules are also executed when a questionnaire is first displayed.</small> | * '''On Change''' rules are executed whenever users change any value. <small>On Change rules are also executed when a questionnaire is first displayed.</small> | ||
Line 660: | Line 661: | ||
* '''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 |
edits