Re: Re: QuickForm, Sigma and {qf_required_note} modification ...
| From: | Nicolas Hoizey | Date: | Tue, 22 Jul 2003 09:31:33 +0000 |
| Subject: | Re: Re: QuickForm, Sigma and {qf_required_note} modification ... | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18525@lists.php.net to get a copy of this message | ||
>> When I used the old QuickForm 2, I used the setRequiredNoteTemplate()
>> method to set the note with my own text.
>
> This was not the right way... ;-)
Why then was this possible? ;)
http://enzo.bz/phpdoc/pear/html_quickform/HTML_QuickForm/HTML_QuickForm.html#methodsetRequiredNoteTemplate
>> Now I don't find any way to modify the default "denotes required
>> field" message.
>
>
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.setrequirednote.php
OK, it works now, thanks!
I think the form template given in the doc should be modified.
<!-- BEGIN qf_required_note -->
<tr>
<td> </td>
<td align="left" valign="top">{qf_required_note}</td>
</tr>
<!-- END qf_required_note -->
Should be :
<!-- BEGIN qf_required_note -->
<tr>
<td> </td>
<td align="left" valign="top">
<span style="color: #FF0000;">*</span>
{qf_required_note}
</td>
</tr>
<!-- END qf_required_note -->
Regards,
-Nicolas
--
Nicolas "Brush" HOIZEY
Free PHP projects http://www.phpheaven.net
Veille tous azimuts http://www.gasteroprod.com
Clever Age http://www.clever-age.com