Removing a filter from a form element

To remove a filter from a form element, find the code that creates and configures the element in process.php. Look for the line that is adding the filters e.g.

1
$element->addFilter('trim');
$element->addFilter('trim');

Remove the line to remove the filter.

Elements with multiple filters

1
$element->addFilters(array('stripTags', 'trim'));
$element->addFilters(array('stripTags', 'trim'));

To remove only the stripTags filter:

1
$element->addFilters(array('trim'));
$element->addFilters(array('trim'));

To remove both the filters delete or comment out the entire line.

Still having trouble? Head over to the forums.

Forums