? No Code Attached Yet
avatar robbiejackson
robbiejackson
7 Jan 2021

This is a feature request.

In Enabling showon to work in list options in JForm (resurrected) the showon capability was extended to options within an HTML select element, so that the options which appear are conditional upon the value set in another field.

This suggestion is to extend this functionality to the Checkboxes form field type, so that the checkboxes field could include

<option value="1" showon="targeta:1">Option 1 text</option>

and then this checkbox would be shown only if the controlling field had that value.

When the user changed the selection in the controlling field, then the set of checkboxes displayed would have to be changed via javascript.

The justification for this request is that this situation often arises in web forms, and having this feature would obviate the need to perform an ajax request and rebuild the set of checkboxes manually.

avatar robbiejackson robbiejackson - open - 7 Jan 2021
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Jan 2021
avatar gostn
gostn - comment - 8 Jan 2021

move to "Discussions".

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: ? No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment