Need to make Assigned to readonly based on,lgges in user

Abhinab Achary1
Tera Guru

Hi All,

I have a requirement where i need to make Assigned to field readonly if the Assignment group selected is not only of the group that the logged in user is a member of. But the moment is changes the Assignemnt group to one of the group he is memeber of the Assigned to field should be editable..

Please help me on this as to how can i achieve this.

Thanks,

Abhinab

1 ACCEPTED SOLUTION

Hi Abhinab,



Not sure why you are thinking it is bad idea but for me it worked using glide ajax.



1.Script include



find_real_file.png


2.Client script


find_real_file.png



Thanks,


Kh


View solution in original post

7 REPLIES 7

Gurpreet07
Mega Sage

You could create a write acl for this with script


answer = gs.getUser().isMemberOf(current.assignment_group);


just that? i tried and didn't work.

karthik120
Giga Expert

Hi Abhinab,



Use glide ajax to check if the logged in user is member of assignment group or not. then using client script make the field read only.



Thanks,


Kh


client script is a bad idea. ACL is good but the problem is in my instance somthing is overiding the assigned to value back to the old value if an user goes into someone else queue and changes the AG , it makes The AT empty but once saves it appears the old memeber in AT which is not at all the memeber of the AG currently selected. There ai not Br i can say.