Re: QuickForm2: Checkboxes addDataSource in Wizzard
| From: | Alexey Borzov | Date: | Sun, 06 Feb 2011 16:57:49 +0000 |
| Subject: | Re: QuickForm2: Checkboxes addDataSource in Wizzard | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30949@lists.php.net to get a copy of this message | ||
Hi Cedrick,
On 06.02.2011 17:45, Cedrick Gout wrote:
When trying to apply addDataSource to a checkbox in the QF2 Wizzard the value doesn't seem to get set correctly.Can you clarify what behaviour you are expecting and what behaviour are you seeing instead?
Below is my example code, I copied the checkbox and radio from the basic-elements.php example file. In my example I only used the radio and checkbox, the radio button does get set correctly but the radio doesn't. (Other elements from the basic-elemenst file seem to get set correctly as well)I tried adding your code to the wizard example and it behaves as expected (by myself at least): on first access of third page checkbox is checked and second radio button is selected. On subsequent displays (if using Back / Next) the values are whatever was input before...
Is this a bug or a mistake on my behalf?