AutoPopulate fields on a form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2025 06:26 AM
Hello All,
I have a requirement to auto-populate fields (org_ap, p_tech_ap, po_a, o_a, p_ta) on contract_partner table's form when field u_partner is changed based on if a record with similar value (u_company) already exist in customer_inforamtion table. The u_partner field and u_company are both reference fields (core_company).
How can I achieve this.. ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2025 06:29 AM
you can use onChange client script with getReference callback or GlideAjax for this
what did you start with and where are you stuck?
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
‎01-06-2025 06:33 AM
@Ankur Bawiskar Thanks for your response. I tried GlideAjax and Business Rule I am not getting any values. As I see both u_partner and u_company fields are reference fields to core_company but I can not figure it out with sys_id.
Can you please guide me please..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2025 06:37 AM
please share your script include and client script
why did you create Business rule?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2025 06:46 AM