How to auto populate a field when the record in loaded

cpinedatx94
Tera Expert

i need a field to auto populate when a record is loaded or when the name of the "technican" field is changed.

 

This field i need auto populated is a address field and the value of that field is stored on a whole other table.

 

i need a way to pull that value from that field and table into my new form and auto populate. 

 

I would like for the "address" field to populate whenever the "technican" field is changed.

 

How do i go about doing this?

2 REPLIES 2

Saurabh Gupta
Kilo Patron

Hi, 
You can write a onChange cliet script on the field "technican" and use GlideAjax to populate the address.
Client scripts (servicenow.com)

AJAX (servicenow.com)

 

 


Thanks and Regards,

Saurabh Gupta

Nivedita Patil
Giga Sage

Hi @cpinedatx94 ,

 

Use onChange client script .

 

Mark my answer correct and helpful if helps you.

 

Thanks,

Nivedita Patil.