How to make a responsive widget

How to make a responsive widget

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.



Brian Gadeberg Buur

Helping people optimize their work and meet customer expectations

6 年

???? thanks G?ran

回复

要查看或添加评论,请登录

G?ran Lundqvist - ServiceNow Witch Doctor的更多文章

  • The joy of getTime() & getByFormat()

    The joy of getTime() & getByFormat()

    I looked at the result I got "*** Script: [DEBUG] 06:00:00" and then I looked at the code: var gdt = new…

    11 条评论
  • How to create external search source "Search Chuck" in ServiceNow

    How to create external search source "Search Chuck" in ServiceNow

    Earlier this week I took the Service Portal Fundamentals class so I could get my voucher for the Micro-cert. Even if…

    4 条评论
  • How to get the fulfillers attention with connect

    How to get the fulfillers attention with connect

    Had a hard time coming up with a good headline for this article. But at least I got your attention.

    7 条评论
  • Client script be gone! Here comes UI Policy!

    Client script be gone! Here comes UI Policy!

    It almost passed my eyes, but luckily Philip made me aware of it in one of my other posts about not using DOM…

    11 条评论
  • SLA Breakdown

    SLA Breakdown

    There are so much new things in London, both big and small stuff. It seems like there just isn't enough time to show it…

    7 条评论
  • Journey into Virtual Agent - Part 2

    Journey into Virtual Agent - Part 2

    Here comes the followup video that I promised when doing Virtual Agent setup in ServiceNow Part 1. This time we go a…

    6 条评论
  • Show reports in Service Portal? Easy peasy

    Show reports in Service Portal? Easy peasy

    Many people have asked for an easy way to publish reports within the Service Portal. And there answer has actually been…

    25 条评论
  • Activating Virtual Agent in ServiceNow - Part 1

    Activating Virtual Agent in ServiceNow - Part 1

    When I write this we all are sitting waiting for the public release of London. We have been playing around with it in…

    7 条评论
  • Short URL for knowledge articles and the magic of processor

    Short URL for knowledge articles and the magic of processor

    I had a question on the community that was kind of tricky, but still the use case was really good. It's was all about…

    21 条评论
  • Hard work pays off

    Hard work pays off

    Normally I write stuff about ServiceNow; how functionality works or other fun stuff. This time it's on a more personal…

    3 条评论

社区洞察

其他会员也浏览了