- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 05:52 PM
I want to know how to auto-populate the assigned to field with the incident location location support and auto populate the assignment group field with the incident location's assignment group if the user selects ACD or Call Center as the service offering before saving the form. I created a before business rule and it is only populating after the form is saved.
See screenshots below
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 06:02 PM - edited 10-01-2024 06:03 PM
Hello @Rhonda9
In ServiceNow, an "onChange" client script is used to execute JavaScript code when a specific field's value changes. This can be useful for dynamically updating other fields, validating input, or displaying messages based on the user's selections.
Since you are trying to auto populate fields on form, onChange Client script could be the possible solution.
"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 07:44 PM - edited 10-01-2024 07:45 PM
@Rhonda9 While skimming through your code, I found that your Script include is not a client callable script include. Due to this the call to LocationUtils will get failed. I recommend you to recreate the script include by making the client callable checkbox checked on the script include form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 07:51 PM
Thanks, I updated to a client callable script include and getting same results.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:01 PM
@Rhonda9 Sent you a direct message, please check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 10:57 PM
Hi @Rhonda9 ,
Have you thought about utilizing assignment rules instead of a business rule?
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/