Quickform

From: Date: Wed, 28 Feb 2007 12:52:53 +0000
Subject: Quickform
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26689@lists.php.net to get a copy of this message
I would like to add a new template element: HELP This would contain an icon where the user can hover over and get some help on that form element. So I would want to register an element the form generation and also below state where I want these outputted. public $_elementTemplate = ' <!-- BEGIN error --> <tr> <td colspan="3"> <span class="text_red">{error}</span> </td> </tr> <!-- END error --> <tr> <td> {help} </td> <th class="form_field"> <!-- BEGIN required --> <span class="redtext">*</span> <!-- END required --> {label} </th> <td> {element} </td> </tr>'; // Register the helpelement. $form->registerElementType('help', 'C:/AWebEnvironment/htdocs/HTML/QuickForm/Elements/help.php', 'HTML_QuickForm_Elements_help'); And then create the elements within the usual form Firstly is this possible and how do I create the template positioning element Cheers Ian

« previous php.pear.general (#26689) next »