Re: QuickForm javascript / setDefaults
| From: | Alexey Borzov | Date: | Wed, 07 Apr 2004 17:18:55 +0000 |
| Subject: | Re: QuickForm javascript / setDefaults | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11720@lists.php.net to get a copy of this message | ||
Hi!
Peter McMillan wrote:
I have a QuickForm working correctly. My app is a quiz. The user registers, takes the quiz and is passed back to the form to start again if they don't pass the quiz. I record the randomly generated set of questions and the user info to a table for each quiz attempt. I've created via setDefaults, $_SESSION vars that contain the First, Last, etc. My problem is that when the user is returned to the form the javascript errors are displayed for the required fields and the setDefaults values are filling in the form fields correctly. The result being that I've got bogus error messages being displayed; a distracting UI.Ugh, how exactly do you return to the form and how exactly do you fill in the values? Via javascript?