Method for a form validation WARNING (vs error)

skyrun

Active Member
I'm looking for a way to validate a form submission where the user is prompted with a warning (in a lightbox? or another screen? or a js alert window?) vs. an error on the form. on the warning, they can choose to heed the warning by pressing 'go back' to the form without processing, or they can ignore the warning by pressing 'ok' to go ahead and save the form anyway.

seems like most fabrik validation options allow only a hard-stop. either it fails validation and an error is returned on the form, or it passes and the form is processed.

anyone have any thoughts for how best to accomplish this?
 
Just note that there may be some things that need changing, as that script was written 5 years ago for Fabrik 1.x. But the same principles still apply. Attach an event to the submit button, which stops the event (so it doesn't bubble onwards after your script finishes), and trigger a submit by hand if your custom validations pass.

If you want to get started, by at least creating that JS file, I can start helping you make it work.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top