How to autopopulate a field in record producer based on reference qualifier?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2023 01:31 AM
I have one field in an Record producer which is a drop down field. The values in the field comes from an reference qualifier
Now I have an another field which is created. The requirement is to auto-populate the above mentioned field, and it should only populate for the values which are present in the field. How to do it?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2023 09:03 PM
Here are the steps:
1) Create a client script that runs onChange().
2) Create a Script include for GlideAjax then, call it on the client script that change the value upon change of field value.
Click thumbs if it this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2023 09:06 PM
Hi there,
onChange Client Script + Script Include would do the job. See here some examples:
- 2020-01-10 - Article - Client Side Scripting: Go for GlideAjax (with getXMLAnswer)!
Or perhaps you are on Utah and your situation qualifies for zero code approach:
- 2023-02-13 - Article - Auto-populate a variable based on a reference type variable (Utah)
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field