Hi,How do I make one of the section views read only for some people and give write access to the others?

Jasmine Rego
Kilo Explorer

Hi,How do I make one of the section views read only for some people and give write access to the others?

6 REPLIES 6

Thanks Shloke.


My requirement is


1)Section X is visible on certain condition(done that)


2)All fileds under X, say 20 fields are read only(done that)


3)These fields should be editable only by certain people.(Need help)


    The problem here is ACL is applied on one field at a time.But i need ACL to be applied for multiple fields at a time and make people with certain role have                   access to edit all these fields in this particular section.The rest of the people will just have it in read only status.


Hi,



in order to Configure your requirement, you need to configure seprate ACL for different fields for which you want to allow the access for to the users based on Role and use the below code in the Script of the ACL:



Script:



if(gs.getUser.hasRole('Mention the Role name'))


{


answer=true;


}


else


{


answer=false;


}



If you want to do this for all field at once then you need to go for the Client Script as mentioned above in my Post.



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke