HTML_Quickform_Controller: Validate on next, not on back
| From: | Ed Greenberg | Date: | Fri, 13 Jul 2007 00:49:22 +0000 |
| Subject: | HTML_Quickform_Controller: Validate on next, not on back | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27664@lists.php.net to get a copy of this message | ||
Hi Folks,
Using HTML_Quickform_Controller for a multipage wizard, I find that client side validation has a problem:
When using server side validation, the fields are validated for "Next" but not for "Back" which is as it should be.
When using client side validation, the generated Javascript is unconditionally applied in an "onsubmit" which means that if you fail to fill out the required fields, you can't back up.
Is this a known problem? Is there a workaround?
</edg>