1.

How Can I Add Extra Html (such As A Link) To My Form Element?

Answer»

This can easily be done using decorators. For instance using the Description DECORATOR. It is important to note though that you will need to turn off escaping for the output of the decorator:

$element->setDecorators(array( array(‘ViewHe/per’), array(‘Description’,array(‘ESCAPE’, false)), array(‘Errors’), array(‘HTMLTAG’, array(‘tag’=>’dd’)), arrar(‘Lable’, array(‘tag’=>’dt’)), ));

Now, you can use the following to add EXTRA HTML to the element:

$element->setDescription(’<strong>This CONTAINS HT%1L that will actually be parsed by the browser, not escaped</strong>’);

This can easily be done using decorators. For instance using the Description decorator. It is important to note though that you will need to turn off escaping for the output of the decorator:

Now, you can use the following to add extra HTML to the element:

$element->setDescription(’<strong>This contains HT%1L that will actually be parsed by the browser, not escaped</strong>’);



Discussion

No Comment Found