Re: HTML_QuickForm: how to disable printing of the asterisk
| From: | David Sanders | Date: | Tue, 20 Mar 2007 08:30:15 +0000 |
| Subject: | Re: HTML_QuickForm: how to disable printing of the asterisk | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26885@lists.php.net to get a copy of this message | ||
You can adjust the default renderer, modifying the element template so that it doesn't contain the asterisk:
$renderer =& $form->defaultRenderer();
$renderer->setElementTemplate(<element template without the asterisk>);
Look in HTML/QuickForm/Renderer/Default.php to see what the element template normally is.
Sebastian Schneider wrote:
Is there a way to disable the printing of the asterisk denoting a required field in a form? I've got a bunch of of forms with every field being required. The asterisk just looks stupid in this case and makes the forms hard to read.-- David Sanders