J3 Issue ?
avatar Spudley
Spudley
22 Mar 2017

The showon field attribute is a great feature for selectively modifying a form, dependant on the values of other fields.

However the way it works, by hiding the fields, is not always ideal. It's great for some uses, but in other cases I would prefer that a field is simply disabled rather than hidden.

For example, this would be useful as a visual clue to users to show them what options will become available if they turn a switch on. If the main option defaults to 'off', they may never see the linked fields unless they realize they should turn it on.

I'm not suggesting any changes to showon because it works really well and probably is the best solution in most cases. But I would like to propose an additional attribute enabledon to complement it.

enabledon would work the same way as showon, sharing the logic code for determining the state; the only difference would be what it does to render the effect on the form.

avatar Spudley Spudley - open - 22 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 22 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Mar 2017
avatar mbabker
mbabker - comment - 22 Mar 2017

These kinds of actions are tricky. showon is entirely UI driven. Something like that would have to affect the form state and be handled both client side (determine to show/hide enable/disable field) and server side (if a field is marked required with an enabledon property as an example).

Not saying it's impossible. But it requires a lot more communication between the client and server than the showon configurations need.

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category UI/UX
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2017
Category UI/UX Feature Request Templates (admin) UI/UX
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2017
Priority Medium Very low
Status New Needs Review
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 18 Aug 2018

After 18 months with no interest from anyone to write the code I am going to close this.

avatar brianteeman brianteeman - change - 18 Aug 2018
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 16:24:25
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Aug 2018

Add a Comment

Login with GitHub to post a comment