Form class : showon in field in fields group based on value out of the group

22 views
Skip to first unread message

roland_d_alsace

unread,
Mar 8, 2024, 5:31:00 AMMar 8
to Joomla! General Development
Hi.

In a xml form, i need to make a show on in a field wich is in a fields group, but the showon depend of a external field

For exemple :

<field name="something"  type="radio" .... </field>
<fields name="params"... >
<field  ...  showon="something:1" ...>
</field>
</fields>

If the html there are
<div class="control-group" data-showon="[{"field":"jform[params][something]","values":"1"],"sign":"=","op":""}]" data-showon-initialised="">
instead of
<div class="control-group" data-showon="[{"field":"jform[something]","values":"1"],"sign":"=","op":""}]" data-showon-initialised="">

how can I get around this without deleting the fields group, which allows me to bind the params array
Reply all
Reply to author
Forward
0 new messages