How to make a responsive widget
G?ran Lundqvist - ServiceNow Witch Doctor
Expert Training Programs - Principal Delivery Manager | ServiceNow MVP[2017 - 2021] | Author
Question came up on the community and it isn't the first one. A member would like to have a "action button" that would appear or disappear on the page without needed to reload the page.
In this example I borrow an example of a action button from Serviceportal.io which has some really nice examples. A link to the specific page for it is at the description of the YouTube video. Then we add some code so depending if the state of the incident is "resolved" or not it will show different buttons with different behaviors. Either it's "Resolve incident" or "Reopen incident". And even if you have the page already open and someone else changes the state from the normal UI, the widget will change. All this is made possible through 1 (almost) line of code with the magic of recordwatch.
And of course you can find an update set for the widget at my github hangout: https://github.com/goranlundqvist/Update-sets
So sit back and enjoy the video.
Helping people optimize their work and meet customer expectations
6 年???? thanks G?ran