- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 02:44 AM
I have created a ui action and given some action to it. once the ui action is clicked it should hide on the form.
how to achieve it, quick help would be really appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 03:19 AM
based on your screenshot simply add this in condition field
current.major_incident_state == 'accepted' && !current.u_pageops
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 02:51 AM
Hi @prash4 ,
We can set conditions to control the visibility of the button. Can you share more inside about what action has been taken?
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 03:00 AM - edited 11-06-2023 03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 03:08 AM
Hi @prash4
At line 20, we're updating the u_pageops field to True.
So we can add one more condition to the UI Action to display the button only u_pageops is False.
current.u_pageops == false;
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 03:19 AM
based on your screenshot simply add this in condition field
current.major_incident_state == 'accepted' && !current.u_pageops
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader