Declarative actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2025 12:50 AM
Hi Can we configure the visibility of the declarative actions?
my requirement is when the status changes to in progress declarative action button should show and then clicking on the on hold declarative action button it should update the record status to on hold and button should not be visible is this possible via server type script in declarative actions.
in script condition i mention current.state.changesTo('9')but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2025 12:53 AM
Hi @Vedavalli
These links might help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2025 12:57 AM
I believe the condition should be current.state==9 because after clicking the button, the form will load.
Make sure backend value of in progress state is 9.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2025 11:31 AM
@Vedavalli Did this work for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2025 01:17 AM
Hi @Vedavalli
Instead, use a condition like current.state == 9 for the visibility, and then let the Declarative Action update the state to On Hold. Once updated, the button will hide automatically because the condition is no longer met.
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
