on_user_error_poll Action
Add on_user_error_poll
to the submit button on a form
so the form can show error messages on input widgets.
When the frontend executes an action list, and an action fails,
it stops executing the list.
If the action failed with an HTTP 403 or 422 response,
and the list contains on_user_error_poll
,
then the frontend polls the page before displaying the error page.
Examples
# Ruby
on_user_error_poll
#![allow(unused)] fn main() { // Rust use applin::{button, on_user_error_poll, rpc}; button("Signup", [rpc("/signup"), on_user_error_poll()]) }