Re: HTML_QuickForm_Controller and setDefaults
| From: | Justin Patrin | Date: | Tue, 12 Sep 2006 16:40:15 +0000 |
| Subject: | Re: HTML_QuickForm_Controller and setDefaults | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25109@lists.php.net to get a copy of this message | ||
On 9/12/06, Kim Fredenberg <lists@conealley.net> wrote:
Hello! I am having a big trouble with a non-modal QF_C and the setDefaults method. I have a six page controller that I use for both entering and editing information. When editing I use setDefaults to fill the form with the current information that is to be changed. Well, each page I visit seems to get the values properly set but if I skip a page then all checkboxes and select fields are submitted as empty. I cannot ignore the empty fields since the user might truly wan't to de-select a checkbox for example. I have spent a couple of days trying to figure out why the select/checkboxes doesn't get set if I do not visit the actual page where they reside. All text fields work nicely, where could I start looking for the problem? Any help would be appreciated!Perhaps setDefaults() isn't getting the right data? Perhaps setDefaults() is being called multiple times, one without the right data? Hav eyou looked at the HTML source of the page to make sure that the right values are/are not set? (i.e. it may be your browser not showing the defaults) -- Justin Patrin