?
avatar brianteeman
brianteeman
18 Apr 2017

What is the use case for having a field and setting it to readonly or disabled in the edit form. Surely that means that no one can ever set a value for the field ?

screenshotr10-01-13

avatar brianteeman brianteeman - open - 18 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Apr 2017
avatar brianteeman brianteeman - edited - 18 Apr 2017
avatar Bakual
Bakual - comment - 18 Apr 2017

Yep, it would meant that. Maybe as a temporary state?
@laoneo Did you just expose all possible formfield attributes or did you have a usecase in mind here?

avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2017
Title
[com_fields] read only or disabled in edit form
[fields] read only or disabled in edit form
avatar joomla-cms-bot joomla-cms-bot - edited - 18 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Apr 2017
Title
[fields] read onlyor disabled in edit form
[com_fields] read only or disabled in edit form
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Apr 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Apr 2017
Title
[fields] read only or disabled in edit form
[com_fields] read only or disabled in edit form
avatar laoneo
laoneo - comment - 18 Apr 2017

I just exposed them. But I think they are more confusing than helpful. Like now you can show a value to the user which is not editable, that's all really.

avatar brianteeman
brianteeman - comment - 18 Apr 2017

I really cant see a valid use case for them and as such they should be removed. The only use case I can think of for having a field disabled/readonly in an edit form would be if the user accessing the edit form doesnt have the correct ACL permissions but the correct way to do that would be with the ACL.

avatar Bakual
Bakual - comment - 18 Apr 2017

The only use case I can think of for having a field disabled/readonly in an edit form would be if the user accessing the edit form doesnt have the correct ACL permissions but the correct way to do that would be with the ACL.

That works already independent of exposing that setting.

avatar brianteeman
brianteeman - comment - 18 Apr 2017

exactly - so we dont need these extra fields which just complicate the UI and dont really do anything

avatar Bakual Bakual - change - 18 Apr 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-18 10:55:24
Closed_By Bakual
avatar Bakual Bakual - close - 18 Apr 2017
avatar Bakual
Bakual - comment - 18 Apr 2017

Please test and review #15373

avatar Raere
Raere - comment - 3 Jul 2018

There is definitely a use for readonly and disabled fields. A good case example for readonly would be a membership organization who wants to assign member id, type, and expiration. An administrator can set those for recordkeeping and not allow the user to edit the fields but to only view them. A good case example for disabled is allowing members to have access to a file so the URL to the file would be there. By disabling that field, the file no longer becomes available.

avatar brianteeman
brianteeman - comment - 3 Jul 2018

that can be ahieved with the acl

Add a Comment

Login with GitHub to post a comment