Auto populate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 12:29 AM
I am writing below script for populating some fields from table but its populating after selecting Room Name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 03:45 AM
I would recommend using the variable auto-populate feature for a code-less approach
If you are not yet on Utah, or want to stick with the onChange script for whatever reason, confirm of course that room_name is a reference type variable, then add alerts before the getReference and before and after if(room) to confirm the script is running and see how far it is getting. Also make sure there are no other Catalog Client Scripts or Catalog UI Policies that are affecting these fields when room_name changes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2024 03:51 AM
Looks familiar 🤣
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field