Re: QFC: how to add form contextual help?
| From: | Ignatius Reilly | Date: | Mon, 23 Feb 2004 20:39:27 +0000 |
| Subject: | Re: QFC: how to add form contextual help? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10880@lists.php.net to get a copy of this message | ||
Smashing, old chaps!
I was blissfully unaware that element labels could be arrays. Another
powerful and elegant feature.
Thanks again to both of you for this fearsome package.
The labels-default.php example is most informative. How about renaming it as
multiple-labels.php?
Cheers
Ignatius
_________________________
"Bertrand Mansion" <bmansion@mamasam.com> wrote in message
news:BC601F7A.13115%bmansion@mamasam.com...
<ignatius.reilly@free.fr> wrote :
> OK. I am reasonably at ease with QFC. My question:
>
> I would like to design a form with 3 columns, the last of which containing
> contextual help (formats to observe, etc.) For instance:
>
> Enter your Belgian bank account number: || < textbox> ||
000-0000000-00
>
> I would appreciate if a better mind could give me some general guidance as
> to how to accomplish this.
addElement() accepts an array for the element label. You might use it for
your help text. Otherwise, you can also create a group with your element + a
static element containing the help. Both cases require appropriate
templates.
Bertrand Mansion
Mamasam