How to load an existing form from servicenow in service portal using Form widget?

jatinm
Kilo Explorer

Hi,

I have been trying to display/load an existing form from servicenow into service portal in jakarta instance. But I'm unable to display the form in service portal. Can anyone help me out in displaying the form in service portal.

For Eg. I want to add a customer's details through an existing form from service portal into the database.I want to display the form in service portal.I tried to drag the Form widget in the container and I don't have any clue on how to display the form using the form widget. There are only 3 options displaying when i click the pencil button. Please help me on solving this issue.

Thanks and Regards,

Jatin Manam.

3 REPLIES 3

michaelskae
ServiceNow Employee
ServiceNow Employee

Hi Jatin,



The Form widget is very simple to use, as it only takes the information it needs from the URL.



Out of the box, the "form" page is already configured with the "Form" widget. You can load pretty much any record in the Service Portal by providing the appropriate URL. For example:



<instance>.service-now.com/sp?id=form&table=incident&sys_id=d71f7935c0a8016700802b64c67c11c6&view=ess



where:


- <instance>.service-now.com/sp is the instance URL with the Service Portal "sp"


- id is the name of the page


- table is the   table name of the record


- sys_id is the sys_id of the record


- view is the view name you want to render the form with. This is optional - without this, it loads the Default View.



Therefore this URL will load a particular incident using the "Self Service" view.



As we already have a page with this widget it, you might as well just use this rather than creating a new page, providing the URL parameters with the hyperlink you create.



If you are new to the Service Portal, I highly recommend this introduction course on the Developer site:



https://developer.servicenow.com/app.do#!/trainlist/app_store_learnv2_serviceportal_jakarta_service_...



Mike


Hi Mike!


I am new to ServiceNow and am trying to the same thing with the Form Widget.


Can you tell me where the URL would go when placing the form on a home page?


I have attached a picture of where I would like to put the form.



Thanks!


Tamyrah


Hi Michael,

I have worked out the below url based on the instructions provided:

https://ven01391.service-now.com/sp?id=RBDataDictionary&table=x_11012_rulebase60_materials_standards_ext&sys_id=6f28baa80f822a00a0698c9ce1050e53&view=DIRB_Domain_View

But I do not know what field to enter this url into.

Below is an image of my available options for the from widget.

find_real_file.png

I have been trying to figure out how to use the form widget for over a year, but usually have to stop after 6 or 7 hours of fiddling around with it; so far over 40 hours lost on this...

Any help would be appreciated.

Thanks for your time,

Lon