? Failure

User tests: Successful: Unsuccessful:

avatar colivier
colivier
24 Feb 2015

Steps to reproduce the issue

1) Use a form with an GroupedList field.
2) Select some items and save the form
3) Put the attribute readonly of the field by code or by the manifest of the form.
4) Reopen the form
5) See the source code
6) You can see some inputs hidden with the name of the GroupedList field

Suggested solution

I find that a simple solution would be to set the disabled attrubute of the GroupedList when the readonly attribute is set (like the list field) remove the hidden controls and leave the name attribute on the GroupedList input

avatar colivier colivier - open - 24 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2015
Labels Added: ?
avatar colivier colivier - change - 24 Feb 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-02-24 17:19:59
avatar colivier colivier - close - 24 Feb 2015
avatar colivier colivier - close - 24 Feb 2015
avatar colivier colivier - head_ref_deleted - 24 Feb 2015
avatar colivier
colivier - comment - 24 Feb 2015

In my case is ok because I don't need to submit the form but if the form need to be submit the values of the GroupedList field are not submit because the disabled attribute is set

I closed the PR

Add a Comment

Login with GitHub to post a comment