FormActionTrigger

The contract through which controls run form actions.

triggerAction returns only whether the action succeeded - and that is all the information the engine hands out. What happens next (closing the screen, going somewhere else) is decided by the button's lambda in the schema builder, i.e. feature code, which knows the navigation anyway.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun triggerAction(actionKey: String, validates: Boolean): Boolean

Runs the whole action: validation, collecting the form data, executing the action.