Change availability
Actions of type Change availability allows to switch the form online or offline. If a form is not available, it can neither be called nor submitted.
Parameter
- Type of change
- Specifies whether the form is switched offline or online.
Action variables
Actions of type Change Availability provide action variables which can be used in subsequent actions.
Standard action variables
- [%$<Actionsname>.SUCCESS%]
- Whether the action could be processed successfully. Evaluates to a boolean, ie. true or false.
- [%$<Actionsname>.RESULT%]
- Return all results provided by the action as JSON.
- [%$<Actionsname>.ERROR_CODE%]
- In case of error the thrown error code of the action. Empty if no error has occurred.
- [%$<Actionsname>.ERROR_MESSAGE%]
- In case of error the thrown error message of the action. Empty if no error has occurred.
Action specific action variables
- [%$<Actionsname>.RESULT.currentState%]
- Indicates whether the form is switched online or offline after this action is executed.
- [%$<Actionsname>.RESULT.previousState%]
- Indicates whether the form is switched online or offline before this action is executed.
- [%$<Actionsname>.RESULT.wasChanged%]
- Indicates whether the availability of the form has been changed. Returns Boolean (true/false).