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

 

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

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

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
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-...

 

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

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

ronro2
Tera Contributor

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