Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

Custom form field template


Reply


536 Views

Avatar
Chimera

Community Member, 10 Posts

12 August 2013 at 4:45am

Hi,

i want to render form field with custom template like its described in documentation, but it doesent work.

This is my field:
$field = OptionsetField::create('filter_type', 'filter_type', array("" => "Prodej", "rent" => "Pronájem"));
$field->setTemplate('PropertyOptionsetField');
$field->setFieldHolderTemplate('PropertyOptionsetField');
$fields->add($field);

And templates are in this paths :
\themes\simple\templates\Includes\filter\fields
\mysite\templates\fields

Any suggestions ? Thanks.