?
avatar hennysmafter
hennysmafter
15 Mar 2018

Steps to reproduce the issue

Create a Form Field type List on a tab with options: 1,2,3 and name: test.
Create any other Form Field on another tab and set showon="test:2" and name: result.

Expected result

If option 2 is selected by the field test then on the other tab the field result should be visible.

Actual result

In the console it has style="display:none;" and therefore it is not visible

System information (as much as possible)

Joomla 3.8.6
PHP

PHP Built On Linux vps1 2.6.32-042stab116.1 #1 SMP Wed May 4 16:21:02 MSK 2016 x86_64
Database Type mysql
Database Version 5.6.24
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.0.10
Web Server Apache/2
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.8.6 Stable [ Amani ] 13-March-2018 14:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36

Additional comments

It breaks a extension that has worked with fields like this since April 2016. Hopefully some of you have a idea why this happens now. Looking forward to replies.

avatar hennysmafter hennysmafter - open - 15 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Mar 2018
avatar hennysmafter
hennysmafter - comment - 15 Mar 2018

Below you can find code from the extension. Maybe things need to be rewritten due to updates. If so we are happy to do so :-)

Tab 1
<field name="theme_selection" type="list" label="MOD_LOGINSECURESLIDESHOW_THEME_SELECTION_LABEL" description="MOD_LOGINSECURESLIDESHOW_THEME_SELECTION_DESC" default="notheme"> <option value="3dperspective">MOD_LOGINSECURESLIDESHOW_THEME_SELECTION_3DPERSPECTIVE</option> <option value="default">MOD_LOGINSECURESLIDESHOW_THEME_SELECTION_DEFAULT</option> <option value="notheme">MOD_LOGINSECURESLIDESHOW_THEME_SELECTION_NOTHEME</option> </field>

Tab 2
<field name="dc_typeofcontent" showon="theme_selection:default" type="list" label="MOD_LOGINSECURESLIDESHOW_CONTENT_TYPE_LABEL" description="MOD_LOGINSECURESLIDESHOW_CONTENT_TYPE_DESC" default="image"> <!--<option value="moduleposition">MOD_LOGINSECURESLIDESHOW_MODULE_POSITION</option>--> <!--<option value="joomlaarticle">MOD_LOGINSECURESLIDESHOW_JOOMLA_ARTICLE</option>--> <!--<option value="htmlcontent">MOD_LOGINSECURESLIDESHOW_HTML_CONTENT</option>--> <option value="content">MOD_LOGINSECURESLIDESHOW_WYSIWYG_CONTENT</option> <option value="video">MOD_LOGINSECURESLIDESHOW_VIDEO</option> <option value="image">MOD_LOGINSECURESLIDESHOW_IMAGE</option> </field>

avatar hennysmafter hennysmafter - change - 15 Mar 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-03-15 17:02:25
Closed_By hennysmafter
avatar hennysmafter hennysmafter - close - 15 Mar 2018
avatar hennysmafter
hennysmafter - comment - 15 Mar 2018

It appeared to be only not working in a external repeatable field function. So looking into it where it breaks but so far it does not seem to be in the ShowOn function.

Add a Comment

Login with GitHub to post a comment