make all fields readonly based on state

VSN
Tera Expert

Hi  All,

I have a requirement, Below are the condition:

1.if user has program_manager and project_manager roles 

2. and state is in progress then all the tables is read only for the above users.

 

i have written onload client script, but it is not working.

siva62_0-1677845916059.png

 

9 REPLIES 9

@VSN  if you write read ACL it will hide total if you want it as read only not editable create "Write" ACL instead of Read

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

i have created a write acl table*,

added the program_manage and project_manager roles ,

added condition state = progress. 

but still above mention group usrs are able to edit the forms.

BharathChintala
Mega Sage

@VSN  Does the user you are testing with have both roles(program_manager and project_manager)??

 

 

and are you sure state backend name is u_state???

 

if it is OOB field it should be just state.

 

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

yes @BharathChintala . 

that user have that teo roles and backend name is u_state. i was given correct details. 

 

@VSN in addition to read acl ,create one write acl.

In the script part of the acl-add below line

return answer =false;

In condition specify state =in progress

 

Thanks,

Manjusha Bangale