Make field Read only in the list view

Lucky1
Tera Guru

Hello all,

 

I have a requirement, in a list view, I want to make a field (u_enable) editable to only one Assignment group, 

On the form view, I have written a UI policy to show the 'Enable' field and make it mandatory, if the Assignment Group is some abc group.

 

But in the list view, every other Assignment group is able to Edit the field.

 

So, please help me on, the field can be visible on the list view, but other than abc assignment group, no other group can edit it.

 

Please help me how can I do this?

 

 

Regards,

Lucky

1 ACCEPTED SOLUTION

Hi @Lucky1,

 

I've tweaked the script for you. This should work. It's tried and tested on my PDI.

 

answer = checkUser();

function checkUser(){
if (gs.getUser().isMemberOf('62826bf03710200044e0bfc8bcbe5df1')) { //replace the sys_id with your assignment group 
    return true;
}
else{
    return false;
}

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

View solution in original post

6 REPLIES 6

Hello Satish,

 

I have also written the same right?

 

 

Regards,

Lucky

Hi @Lucky1,

 

I've tweaked the script for you. This should work. It's tried and tested on my PDI.

 

answer = checkUser();

function checkUser(){
if (gs.getUser().isMemberOf('62826bf03710200044e0bfc8bcbe5df1')) { //replace the sys_id with your assignment group 
    return true;
}
else{
    return false;
}

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie