We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Hide the ui action in the related list

tushar_ghadage
Tera Contributor

Screenshot (28).png

here i want to hide the 'edit' button when the state is in progress 

how shall i achieve it ? 

7 REPLIES 7

Dr Atul G- LNG
Tera Patron

Hi @tushar_ghadage 

 

 right click on the list header for Releases related list

2) Configure list control

AGLearnNGrow_0-1739342754221.png

 

3) Use Omit edit condition script and add this script

 

AGLearnNGrow_1-1739342984287.png

 

if(parent.state.toString() == '2')
    answer = true; // omit
else
    answer = false; // show
 
Save the form and check.

Bring omit edit condition on form via form layout

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

its not working out its still visible.

Did you try in new records or old? Share the script. 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Dr Atul G- LNG
Tera Patron

Hi @tushar_ghadage 

 

If all good, please close the thread by accepting the answer.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************