- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi
Im getting a Java Script error on this and getting stuck
Here is the scenario
On our Request forms we have the following Variable Set - User Information
the set contains the following
1. Customer Name - customer_name
2. Managers Name - manager
3. Business Reason for Ask
When you load the form we have it set do the following
Customer Name - Who ever opened the form
Manager - that persons manager - sets to Read Only -since we do not want people to be able to select their approver
However when you change the customer name, the manager should change as well, this is where I get the error
Here is the script that I am using - I have active off right now
OnChange
Script
When I change the customer I get Java Error.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Post the entire Script Include. Errors are usually in the Script Include not found, running correctly, or returning anything. Also consider an alternate approach of using the Auto Populate feature on the Manager variable, instead of the client and server scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
why not use auto-populate feature and no scripting is required
Auto-populate a variable based on a reference type variable (Utah)
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Thank you for marking my response as helpful.
As per community feature you can mark multiple responses as correct.
💡 If my response helped, please mark it as correct ✅ as well so that this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Post the entire Script Include. Errors are usually in the Script Include not found, running correctly, or returning anything. Also consider an alternate approach of using the Auto Populate feature on the Manager variable, instead of the client and server scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Thanks!
Didn't realize that Autopopulate was working (previously had an issue with it)
