On Can Execute: Difference between revisions
Marek Rodak (talk | contribs) No edit summary |
Marek Rodak (talk | contribs) |
||
| Line 14: | Line 14: | ||
List of available form and questionnaire commands can be found [[Command editor#Available commands|here]]. | List of available form and questionnaire commands can be found [[Command editor#Available commands|here]]. | ||
==Examples of | ==Examples of On Can Execute rule== | ||
===Field clearing command availability=== | ===Field clearing command availability=== | ||
Revision as of 13:41, 12 September 2022
| Rules and examples |
|---|
|
| Warning | Work in progress! We are in the process of updating the information on this page. Subject to change. |
App users can execute commands from their app, for example, run a mobile report or delete several records at once. Predefined commands usually function out of the box. However, you can use rules to define their availability and tweak their function. On Can Execute defines when is a command available in the app. 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.
On Can Execute is available for the following user interface components:
In Woodford, you can edit the commands available for a form. In Questionnaire Designer, you can edit the commands available when filling out a questionnaire.
Commands
List of available form and questionnaire commands can be found here.
Examples of On Can Execute rule
Field clearing command availability
If the Entity.addres1_line1 field contains data, delete clearing button is enabled. Otherwise, it remains disabled.
| If Condition | Command.Name | Equals | custom_del_street | |
| Then | If Condition | Entity.addres1_line1 | ContainsData | |
| Then Step | Command.isEnabled | Assign | True | |
| Else Then Step | Command.isEnabled | Assign | False |