Consider the following form
<fieldset name="settings" label="LABEL">
<fields name="fruites">
<fields name="apple">
<field name="enabled" type="radio"
label="JENABLED"
default="1">
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field name="price" type="text"
showon="enabled:1"
label="label1"
/>
</fields>
</fields>
</fieldset>
The price should be shown when we choose Yes on the enabled field
The price field never shows up
Joomla! 3.7.0-beta2
PHP 7.0.15
Here's the produced showon attribute on Joomla 3.7.0-beta2
data-showon='[{"field":"jform[fruites.apple][enabled]","values":["1"],"sign":"=","op":""}]'
And here's the produced showon attribute on Joomla 3.6.5 which works
data-showon='[{"field":"jform[fruites][apple][enabled]","values":["1"],"op":""}]'
Labels |
Added:
?
|
Title |
|
Title |
|
You want to do the PR?
Title |
|
||||||
Status | New | ⇒ | Closed | ||||
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-11 18:51:39 | ||||
Closed_By | ⇒ | jeckodevelopment |
I fixed something related to groups lately: #13549
But I wasn't aware that there can be more than one group. Then the groups parameter here liklely needs to be exploded and added for each group here: https://github.com/Bakual/joomla-cms/blob/staging/libraries/joomla/form/helper.php#L343