make all fields readonly based on state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 04:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 08:02 AM
@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
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2023 01:14 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 05:16 AM - edited 03-03-2023 05:17 AM
@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.
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 05:35 AM
yes @BharathChintala .
that user have that teo roles and backend name is u_state. i was given correct details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 03:49 AM
@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