I am trying to figure out how to get the showon
tag to work with nested fields. Could someone please look at the code below and tell me what I do wrong or if it is at all possible.
<field name="main"
type="radio"
class="btn-group btn-group-yesno"
default="0"
label="LABEL"
description="DESC" >
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="sub"
type="radio"
class="btn-group btn-group-yesno"
default="0"
showon="main:1"
label="LABEL"
description="DESC">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="nested"
type="text"
default=""
showon="main:1,sub:1"
label="LABEL"
description="DESC">
</field>
showon
attribute is possible. You'll have to create a custom form field and inject some JS to do this