How to prepopulate fields on a service catalog item using a URL

mandie
Kilo Contributor

Hi all, 

I am trying to do the following: 

Show a user a list of their assets on the Service Portal. The user should have actions for each asset which they can select, 

When the user selects the action, it should direct them to a Service catalog item and pre-populate some fields on the catalog item such as the selected asset in the model fields and users name in the requested for fields. 

How do I go about doing this? Can anyone help? 

Regards,

Amanda 

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Amanda,

The only way to do this is to pass some parameters in the url and then run an onload client script on the catalog item to grab those url parameters and populate them into the variables. Here are a couple of blog posts that should help:

3 Ways to Populate Values via URL

Populating Values through Service Portal

View solution in original post

4 REPLIES 4

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Amanda,

The only way to do this is to pass some parameters in the url and then run an onload client script on the catalog item to grab those url parameters and populate them into the variables. Here are a couple of blog posts that should help:

3 Ways to Populate Values via URL

Populating Values through Service Portal

I am unable to view the contents of this post. Are the links still valid?

 

Nazhath2_0-1694450710388.png

 

Found the link to the 3 Ways to Populate Values via URL

mandie
Kilo Contributor

Many thanks Brad! I came across that yesterday and it has worked for me.