Make Name(short_description) field Readonly on sn_grc_advanced_evidence_response for Assignedto user

Nagashree5
Tera Contributor

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.

2 REPLIES 2

Siva Sai Teja
Tera Expert

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

}

Please Mark Correct if this solves your query and also mark  Helpful if you find my response worthy based on the impact.

Thanks

Fabio Fernandes
Tera Contributor

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.