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
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

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

its not working out its still visible.

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

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @tushar_ghadage 

 

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

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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