How to automatically populate the fields on a catalogue item when opening it in a new window

matthew_hughes
Kilo Sage

I'm working with the below workspace:

matthew_hughes_0-1749739936531.png

Within this workspace, when a user clicks on the 'here' link, it will take them to the below catalogue item:

matthew_hughes_1-1749740014796.png

However, what I would like the link to do is automatically populate the 'Modification required' field with a specific value.

 

I only want this functionality to be applied when I access the catalogue item via that link. Does anyone how I can achieve this?

 

3 REPLIES 3

J Siva
Tera Sage

Hi @matthew_hughes 

Check out the below community post.

You can use that approach to pre-fill the variables.

 

https://www.servicenow.com/community/itsm-forum/fill-catalog-variable-via-url/m-p/2748704

 

Regards,

Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@matthew_hughes 

how did you configure that text and the link?

why not send an additional parameter in URL on click of that link along with catalog item sysId?

Then you can use onLoad catalog client script on that catalog item and get the value from URL and set in variable?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader