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 UI Action button from being visible on records not yet created

ronro2
Tera Contributor

Hello guys! 

I have trouble hiding a UI action button from being visible while a record is being created. 

I have tried with the following condition to hide it, but it's not working: current.state == 'open' && !current.isNewRecord()

 
Here is the UI action: 

ronro2_0-1742832441849.png


Here is where button "Scrolla till botten" should be hidden: 

ronro2_3-1742832677517.png


And here is where it should be visible only: 

ronro2_2-1742832615872.png


Any advice? What am I missing? 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron

Hi @ronro2 

Try this way

 

current.state!=<value for New > 

 

https://www.servicenow.com/community/developer-forum/how-to-hide-ui-action-based-on-field-change-in-...

 

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

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

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron

Hi @ronro2 

Try this way

 

current.state!=<value for New > 

 

https://www.servicenow.com/community/developer-forum/how-to-hide-ui-action-based-on-field-change-in-...

 

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

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

ronro2
Tera Contributor

Thank you mr @Dr Atul G- LNG  🙂 It really worked!