I have a mutliple subform field with radio buttons. All other fields load by showon of the related parent radio select.

If there was added more than one item without saving successively, the radio buttons-state transferred to all items and the showon items are only merged to the first one.

This issue appears only by adding multiple items at once.

enter image description here

<field name="field-name" type="subform"
    formsource="modules/mod_myimage/forms/test1.xml" multiple="true"
label="Subform Field" description="Subform Field Description" />

    <field name="myradiovalue" type="radio" default="0" label="Select an option" description="" class="btn-group btn-group-yesno">
        <option value="1">Heading</option>
        <option value="2">Content</option>
        <option value="3">Button</option>
        <option value="4">Image</option>

It is clear why this happens without unique id before saving, but how to fix this?

<label for="jform_params__field_name__field_nameX__myradiovalue2" id="jform_params__field_name__**field_nameX**__myradiovalue2-lbl" class="btn">Button</label>

enter image description here

  • You XML doesn't appear to use the showon attribute
    – Lodder
    Oct 18, 2019 at 11:36
  • I added another picture. Found same issue here github.com/joomla/joomla-cms/issues/…
    – Marco
    Oct 18, 2019 at 11:56
  • Seems this issue only appears at radio field, list field work fine for me.
    – Marco
    Oct 18, 2019 at 12:07
  • May be an idea to post this as an issue on Joomla's Github Issue Tracker
    – Lodder
    Oct 18, 2019 at 14:06


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.