?
avatar grantg182
grantg182
25 May 2016

Steps to reproduce the issue

Create new form fields for custom article options, e.g. /templates/t3_bs3_blank/etc/extrafields/myfields.xml

In myfields.xml, create a repeating group to appear in a modal. Example:-

<field name="list_subtitles" type="Repeatable" icon="list" description="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_DESC" label="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_LABEL" default="{'subtitlelanguage':['']}"> <fields name="params"> <fieldset hidden="true" name="list_subtitles" repeat="true"> <field name="subslang" multiple="false" type="list" label="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_TITLE" description="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_DESC" filter="unset"> <option value="1">English</option> <option value="2">Spanish</option> <option value="3">German</option> </field> <field name="subssrc" type="url" showon="subslang:2" label="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_FILE" description="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_FILE_DESC" filter="unset" /> </fieldset> </fields> </field>

Expected result

Click the 'Select' field to display the modal. In the modal, initially there should be only the select list showing - the text field should not appear until the select option value '2' has been selected.

Actual result

However, the text field is displayed at all times. The showon function works as expected outside of a modal, however. E.g:-

<fieldset hidden="true" name="list_subtitles" repeat="true">
    <field name="subslang" multiple="false" type="list" label="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_TITLE" description="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_DESC" filter="unset">        
        <option value="1">English</option>
        <option value="2">Spanish</option>
        <option value="3">German</option>
    </field>
    <field name="subssrc" type="url" showon="subslang:2" label="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_FILE" description="TPL_GROUP_EXTRA_FIELDS_SUBTITLES_SUBTITLE_FILE_DESC" filter="unset" />         
</fieldset>

However, this removes the repeatable nature I desire.

System information (as much as possible)

Joomla 3.5.1

Additional comments

avatar grantg182 grantg182 - open - 25 May 2016
avatar grantg182 grantg182 - change - 25 May 2016
The description was changed
avatar grantg182 grantg182 - change - 25 May 2016
The description was changed
avatar grantg182 grantg182 - change - 25 May 2016
The description was changed
avatar Bakual Bakual - change - 25 May 2016
The description was changed
avatar Bakual Bakual - change - 25 May 2016
The description was changed
avatar brianteeman brianteeman - change - 3 Aug 2016
Category UI/UX Fields UI/UX
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Apr 2017

@grantg182 can you confirm Issue on latest Staging too?


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

avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status New Information Required
avatar grantg182
grantg182 - comment - 6 Apr 2017

Yes, unfortunately it appears to be no different in 3.6.5 using the above example.

avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
The description was changed
Status Information Required Needs Review
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Apr 2017

thanks for Info, set Status to "Need Review" on Issue Tracker.


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

avatar Fedik
Fedik - comment - 8 Apr 2017

No chance it will be fixed anytime.
Use https://docs.joomla.org/Subform_form_field_type instead of Repeatable.
There 'showon' should work.

avatar Bakual Bakual - change - 8 Apr 2017
The description was changed
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2017-04-08 20:02:35
Closed_By Bakual
avatar Bakual Bakual - close - 8 Apr 2017
avatar Bakual
Bakual - comment - 8 Apr 2017

Closing as it's a known issue which will not be fixed
The repeatable formfield is deprecated and replaced by the subform one for reasons like this one.

Add a Comment

Login with GitHub to post a comment