?
avatar webchun
webchun
5 Aug 2015

Steps to reproduce the issue

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>

Expected result

I'm expecting the output of item_title will be raw filtered

Actual result

Any html tag I entered for item_title is always removed

System information (as much as possible)

Joomla 3.4

Additional comments

The same behaviour is also present with safehtml filter

avatar webchun webchun - open - 5 Aug 2015
avatar Fedik
Fedik - comment - 5 Aug 2015

you need to apply the filter and validation for the parent field: rep_list,
in current realisation of the repeatable field the filter and validation has no effect for children fields

avatar webchun
webchun - comment - 5 Aug 2015

Hi, it works. thanks! But what if I have 2 child fields and I need different filter for both of them?

avatar Fedik
Fedik - comment - 5 Aug 2015

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;
  }

}
avatar Fedik
Fedik - comment - 5 Aug 2015

but I think it is still valid issue,
would be good when Joomla handle it in the core

avatar webchun
webchun - comment - 5 Aug 2015

Yes I think so. Thanks anyway for the help

avatar webchun
webchun - comment - 6 Sep 2015

Anyway, just want to let you know, I just found that 'showon' also doesn't work with repeatable field childs


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7627.

avatar Fedik
Fedik - comment - 6 Sep 2015

'showon fail' is known issue, see #7770 and #6882

avatar webchun
webchun - comment - 8 Sep 2015

Ok thanks! Btw, I just found out that repeatable field doesn't work in the frontend editing too. It opens dark overlay only

avatar zero-24
zero-24 - comment - 9 Sep 2015

Closing as we have #6882 there @artur-stepien try to prepare a pull request for.

avatar zero-24 zero-24 - change - 9 Sep 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-09-09 06:17:49
Closed_By zero-24
avatar zero-24 zero-24 - close - 9 Sep 2015
avatar zero-24 zero-24 - close - 9 Sep 2015
avatar Fedik
Fedik - comment - 9 Sep 2015

@zero-24 field Filter thing do not related to javascript issue in #6882 :wink:

avatar zero-24
zero-24 - comment - 9 Sep 2015

hmm than i missinterpret your comment. Sorry than i reopen here. Thanks.

avatar zero-24 zero-24 - change - 9 Sep 2015
Status Closed New
Closed_Date 2015-09-09 06:17:48
Closed_By zero-24
avatar zero-24 zero-24 - reopen - 9 Sep 2015
avatar brianteeman brianteeman - change - 10 Mar 2016
Category Layout Fields Layout
avatar brianteeman
brianteeman - comment - 8 May 2016

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.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7627.

avatar brianteeman brianteeman - change - 8 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 13:22:42
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 May 2016

Add a Comment

Login with GitHub to post a comment