How to autopopulate a field in record producer based on reference qualifier?

taahamushtaq
Tera Contributor

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?

2 REPLIES 2

GodOfWar
Mega Guru

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn