Re: FormBuilder subforms
| From: | Justin Patrin | Date: | Thu, 19 Jan 2006 15:51:02 +0000 |
| Subject: | Re: FormBuilder subforms | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22609@lists.php.net to get a copy of this message | ||
On 1/19/06, Prue <prue@clipmagic.com.au> wrote:
> Hello
>
> Is there a way to limit the number of fields that are grouped in a subform?
> The newLinkValue table has many fields but only a couple are needed. It's
> difficult to determine which is which when they're all lined up together
> with only the select field label displayed. Better still, is is possible to
> format the fields in the subform group with their own labels? If so, please
> let me know.
>
I have no idea what you're talking about. SubForms, such as those for
linkNewValue, normally have the same formatting as a normal form, with
all of their own labels. For an example, see the following link and
choose "--New Value--" for Genre.
http://pear.reversefold.com/EditRecord.html
SubForms are not groups; they're SubForms. They only have groups
within them if that's the way you set up that DO's form. If you want
to limit the fields in a FormBuilder form you do it the same way
whether or not it's a form or a SubForm, you set the options in the DO
class (such as fieldsToRender). If want it different when it's a
SubForm use the prepareLinkedDataObject callback on the main form's
DO.
--
Justin Patrin