Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide New and Edit button based on roles. Urgent!!!!!

madanm2103
Kilo Explorer

Hi All,

 

I need to hide New and Edit button for problem creator role in the Problem Task related list in Problem form.

I tried all the possible ways but still not working.

PLease help me on this.

 

Thanks,

Madan

22 REPLIES 22

//answer = !parent.active;


if (parent.state == '3' || parent.state == '-2') // Scheduled/Closed state.


      {


      answer =   true;


}


else


      {


      answer = false;


}


Vishal Sharma3
Tera Contributor

Hi Madan

 

It can be done using List control.()

Please check below SS. it will help you out.

 

find_real_file.png

Community Alums
Not applicable

Hi Vishal Sharma,

 

How to get the script part in list control. I could not see it minefind_real_file.png