Re: FormBuilder Element Group Processing
| From: | Markus Wolff | Date: | Wed, 10 Dec 2003 15:04:30 +0000 |
| Subject: | Re: FormBuilder Element Group Processing | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9454@lists.php.net to get a copy of this message | ||
Orya wrote:
My thoughts are to create an element group containing a date value and a checkbox, if the checkbox isn't set the date selects would be disabled (via javascript.) To do this I need to 1) Add the group to the form and replace the existing date fields 2) add form processing that determines whether checkbox is on or off and determines whether to set date to NULL or not 3) write the javascriptExcept for the Javascript and grouping part, this is how I've done it so far - just add a select box and simply ignore the date values if it's not set. However, the current date support in FormBuilder kinda sucks. I've been thinking about adding a more elegant solution, but I can't seem to come up with something truly general - so if anybody has ideas for this, please shoot :-) I've also been thinking about adding a new form element type to QuickForm that handles manually typed dates in textfields (not just simple validation, but also including conversion for ISO dates from a database)... this is what FormBuilder could then use as the standard element for dates... CU Markus