Expand my Community achievements bar.

SOLVED

Disable dialog fields based on user group

Avatar

Level 4

I am trying to make a few page properties field read-only for a select group of users under a group.

I can show/hide those fields based on the Granite Render Condition, but my requirement is to show the fields in a disabled way.

 

I can do it via a JS and then fire a servlet to determine the group and disable these fields.

 

But I am trying to understand if there is a clean way to do it, similar to Granite Render Condition.

@arunpatidar 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ashish_mishra1 
There is no OOTB features available to disabled field. For the cleaner solution you can try EL

https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/... 

 

There you can write logic to return true false based on condition. e.g. for cqDesign

https://github.com/adobe/aem-core-wcm-components/blob/7143313768b3695d76757c17c19d12e7d5a9ccc6/conte... 

 

 



Arun Patidar

View solution in original post

2 Replies

Avatar

Level 9

if you have fix set of user group for known set of properties then you can try it via using node level ACL's permission and implementing like jcr:modifyProperties or similar. check here 

 

https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/user-group-ac-a...

Avatar

Correct answer by
Community Advisor

Hi @ashish_mishra1 
There is no OOTB features available to disabled field. For the cleaner solution you can try EL

https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/... 

 

There you can write logic to return true false based on condition. e.g. for cqDesign

https://github.com/adobe/aem-core-wcm-components/blob/7143313768b3695d76757c17c19d12e7d5a9ccc6/conte... 

 

 



Arun Patidar