How to auto populate a field when the record in loaded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 07:36 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 09:44 AM
Hi,
You can write a onChange cliet script on the field "technican" and use GlideAjax to populate the address.
Client scripts (servicenow.com)
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 10:20 AM
Hi @cpinedatx94 ,
Use onChange client script .
Mark my answer correct and helpful if helps you.
Thanks,
Nivedita Patil.
