- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 05:29 AM
I'm trying to set a default value on a reference field called "u_director_name". When a user creates a Change Request I want the Director value [u_director] from their User record to pass to "u_director_name".
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 06:09 AM
Looks like maybe you've got some security settings getting in the way. You'll probably need to create a script include with the 'gs.getUser().getRecord().getValue('u_director_name');' line I gave you before. Then you can call your script include in your default value instead. It's really simple to do. Just set it up as shown here.
https://community.servicenow.com/community?id=community_question&sys_id=5ea11b6ddbdcdbc01dcaf3231f96197e
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 07:18 AM
Interesting