Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

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.

So sit back and enjoy the video.

//Göran

 

find_real_file.png

Comments
jhonbustamante
Kilo Contributor

Hello Göran, I have a similar case, but I not have can complete it. Can you help me please?

Below my case:

In the service portal, in the ticket widget related to an incident, make an adjustment so that both appear when a ticket is resolved. The buttons should say: Close and the other Reopen. If you press close, you must close the ticket and immediately submit the user satisfaction survey. If you press reopen, you must reopen the ticket.
Use the survey of the faces. When pressing the buttons there must be a confirmation screen from birth to action as such.

Aditionally I would like know how agregate the widget named "Actions".

If is possible, can you contact me for skype? My skype is jhon.busta

Thank you very much.

JimmieOdelius
Tera Expert

Neat. I've implemented this a couple of times but will definately add your modifications in the future. 🙂

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi,

 

I dont really think I'm following here what your requirements are. Can you try to be a bit more specific? I'll see if I can catch you on skype.

 

//Göran

jhonbustamante
Kilo Contributor

Hi Göran,

Thank you for your interesting in my case. I have already completed my case with help of your article.

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Ahh nice, happy to hear it was solved. 🙂

Version history
Last update:
‎03-14-2018 11:57 AM
Updated by: