I create this code on my xml file :
<field name="rep_list" type="repeatable" icon="plus" description="List Desc" label="List Label"mdefault=""> <fields name="params"> <fieldset hidden="true" name="list_templates_modal" repeat="true"> <field name="item_title" type="text" default="" label="Item Title" filter="raw"/> </fieldset> </fields> </field>
I'm expecting the output of item_title will be raw filtered
Any html tag I entered for item_title is always removed
Joomla 3.4
The same behaviour is also present with safehtml filter
Hi, it works. thanks! But what if I have 2 child fields and I need different filter for both of them?
I would recommend write a custom filter, for your needs:
in xml: filter="MyComponentHelper::filterListField"
in helper class:
class MyComponentHelper
{
public static function filterListField($inputValue)
{
// ... here some code for filter
// ... here some code for filter
// ... here some code for filter
// ... here some code for filter
return $fitreredValue;
}
}
but I think it is still valid issue,
would be good when Joomla handle it in the core
Yes I think so. Thanks anyway for the help
Anyway, just want to let you know, I just found that 'showon' also doesn't work with repeatable field childs
Ok thanks! Btw, I just found out that repeatable field doesn't work in the frontend editing too. It opens dark overlay only
Closing as we have #6882 there @artur-stepien try to prepare a pull request for.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-09-09 06:17:49 |
Closed_By | ⇒ | zero-24 |
hmm than i missinterpret your comment. Sorry than i reopen here. Thanks.
Status | Closed | ⇒ | New |
Closed_Date | 2015-09-09 06:17:48 | ⇒ | |
Closed_By | zero-24 | ⇒ |
Category | Layout | ⇒ | Fields Layout |
Thank you for taking the time to report this.
This is a known issue which cannot be resolved with the repeatable field code. However the good news is that we will hopefully be introducing a new subform feature in the next joomla release which should allow you to do exactly what you want.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-08 13:22:42 |
Closed_By | ⇒ | brianteeman |
you need to apply the filter and validation for the
parent
field:rep_list
,in current realisation of the repeatable field the
filter
andvalidation
has no effect for children fields