- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 02:28 AM
I have a UI action on the Incident form which redirects to a catalog item form for creating a new request, which links back to the incident. I want to be able to populate some of the variables on the form using an onLoad UI client script, the first being a select box on the catalog item, and also some values from the incident.
I have tried g_form.setValue('what_do_you_want_to_do', 'swap_asset'); but it isn't populating the variable
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 03:49 AM
then check this link which talks how you can send value over URL as parameter and then retrieve it on catalog form
3 Ways to Populate Values in ServiceNow via the URL
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 03:49 AM
then check this link which talks how you can send value over URL as parameter and then retrieve it on catalog form
3 Ways to Populate Values in ServiceNow via the URL
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 04:05 AM
Thanks, will try this and update on progress
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2023 08:29 AM - edited 04-17-2023 08:29 AM
@Ankur Bawiskar Worked a treat, thanks. Now how can I wrap inside a condition that the client script only applies if the catalog item has been opened from the incident?