e-sign widget on custom table

Christine30
Tera Guru

Hello:

I am new to widgets. I'd like to create catalog tasks for e-signature from a custom task table. I've followed the steps at the helpful link below to create widget which embeds the e-sign widget.

https://community.servicenow.com/community?id=community_question&sys_id=3f44f692db1d7810a4c10b55ca9619d2&anchor=answer_7ed2dc24db317014ddb1d9d9689619c3&view_source=searchResult

My question, which relates to widgets in general, is how to "call" the widget from my custom task table. In other words, when "$sp.getParameter('sys_id')" is executed, where is the sys_id coming from? Must I add code to a server or client script, or UI action on the custom task table to invoke the widget? (I've searched for this on other task tables but can't seem to find it).

The post above mentions that "the widget will expect the sys_id to be a URL parameter named sys_id. i.e. the page will be something like INSTANCEURL/sp?id=PAGEID&sys_id=a02baa76dbe5745029d85425f396194f" but I am not sure exactly what that means. When I am on the custom task form, the widget isn't "called" so the sys_id is not populated in the widget's "$sp.getParameter('sys_id')".

Thank you for any help or pointers.

Christine

 

7 REPLIES 7

which widget are you using to display the form ?

is it the OOB  form widget ?

post a screenshot of the portal form and the url also please

I am using the custom widget. This is the Portal URL: https://xxxxdev1.service-now.com/$spd.do#/sp/preview/desktop/procurement_home

When I go to the portal and click refresh I get the screen shot below. I had added the widget below "Home Page" but it is not displayed.

Apologies if I'm asking the wrong questions. Similar to Approvals, I'd like the forms to  be e-signed by the logged-in user to appear in the custom widget (which is currently not displaying). Thanks again.

find_real_file.png

I was able to get it to work by updating widget's client script with a listener on the custom table, see attached.