I want to hide a field from a sys_popup view

Vaishnavi35
Tera Guru

Hi,

I want to hide a field from sys_popup view but that field should be visible only to service_desk role users.

That role already exists in my instance.

Can anybody help me with that. Let me know if i can achieve this without coding.

Thanks,

Vaishnavi

1 ACCEPTED SOLUTION

Hi,

Yes as you said intially that you have that role in your system right so you can add that role. No script needed. If on role then you need to script as below to see if the user if part of that group or not

if(gs.getUser().isMemberOf('sys_id of Service Desk Group')){
answer = true;
}else{
answer = false;
}


Thanks,
Ashutosh

View solution in original post

13 REPLIES 13

Hello Vaishnavi,

Follow these steps.

1. as per your screenshot, under Name field, select sys_user table

2. Then select field name pin on the other dropdown

3. Then under roles select service desk

Save and and check it.

Mark the comment as helpful if it helps.

Hi Asif,

Thank you 🙂

answer = getValue();

function getValue(){

return gs.getUser().isMemberOf('Service Desk');

}

after selecting role no need to write a script like this?

Thanks,

Vaishnavi

Hi Vaishnavi,

 

In case if its only Service Desk group users who have service desk role then no need to add scirpt as role would suffice.

In the Role just add requierd role of service desk. Did you check the link shared in comments before. It talks about the same & how to get it set up as well.

As others already mentioned, if you already have a role, then no need to script again. Just select the role, thats it.

Kindly mark the earlier comment as a correct answer if it has answered your question.

Hi,

Yes as you said intially that you have that role in your system right so you can add that role. No script needed. If on role then you need to script as below to see if the user if part of that group or not

if(gs.getUser().isMemberOf('sys_id of Service Desk Group')){
answer = true;
}else{
answer = false;
}


Thanks,
Ashutosh