On Can Execute
| 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 custom commands
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 |