triggerAction

abstract suspend fun triggerAction(actionKey: String, validates: Boolean): Boolean

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

Return

true when the action ran and reported success; false when validation failed, there is no action with that key, or the action itself reported failure.

Parameters

actionKey

Key from FormDataManager.definedFormActions().

validates

Whether to run field and business-rule validation before the action.