For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2007 > Re: [PEAR] HTML_QuickForm: how to disable printing of the asterisk









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] HTML_QuickForm: how to disable printing of the asterisk
David Sanders

2007-03-20, 8:04 am


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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com