Skip to main content

run_validations

Function run_validations 

Source
pub fn run_validations(form: &FormTree) -> Result<ScriptResult, ScriptError>
Expand description

Execute all validate scripts in the form tree, collecting failures.

For each Field node with a validate script, evaluates the script. A validation passes if the result is truthy (non-zero number, non-empty string).