Make Name(short_description) field Readonly on sn_grc_advanced_evidence_response for Assignedto user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 05:54 AM
Hi Everyone,
Requirement is to make the short_description field non editable for the assigned to of the evidence. I have written a display business rule and on load client script on this but still it is not making the filed readonly.
Can anyone help.
TIA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 06:43 AM - edited 04-01-2024 06:46 AM
Hi @Nagashree5, could you please post your code here?
Br could be as below
if(gs.getUserID()==current.assigned_to){
g_scratchpad.assignedTo='true';
}
Client Script:-
if(g_scratchpad.assignedTo=='true'){
//make your field readonly
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 06:59 AM
I would create a write acl to make the field read-only.
so you only need to set in the condition to assigned to is not me.