Re: [QuickForm] rename fields inside group
| From: | Bertrand Mansion | Date: | Wed, 09 Apr 2003 17:34:05 +0000 |
| Subject: | Re: [QuickForm] rename fields inside group | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4735@lists.php.net to get a copy of this message | ||
le 9/04/03 18:56, Geoff Hopson à ghopson@mac.com a écrit :
> Hi,
>
> I have set up a group to have a text field and a button (trying to use
> a popup calendar, actually). The popupcalendar script I am using
> requires the name of the field to be passed in. But the field name is
> of the form 'groupname[fieldname]' - I need it to be of the form
> 'fieldname' only!
>
> The source for QuickForm has this bit in the comment for addGroup:
>
> * @param string $useName (optional)specify whether the group name
> should be
> * used in the form element name ex: group[element]
>
> Anyone know if this works, and can provide an example?
>
> Thanks,
> Geoff
In the cvs version, this parameter is actually used. It's called appendName
instead. We still need to fix some problems with retrieving the field values
when this parameter is set to false but other than that, it is usable.
Bertrand Mansion
Mamasam