pub fn prepare_form(form: &mut FormTree) -> Result<ScriptResult, ScriptError>Expand description
Run calculate scripts, then layout. Convenience wrapper for the common flow.
Returns the script result so callers can inspect which fields changed and whether validations passed.