- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 05:30 PM
I'm trying to use a UI Policy on a catalog item to make a field mandatory based on the reference variable to the sys_user table. Is this possible? Would a client script be better?
My variable is "user", and it's a reference field to the sys_user table.
I am then seeing the following in my condition builder:
but if I dot walk that to a field on the user record and set it to something that looks like it should work, it doesn't seem to apply correctly.
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 09:33 PM
please try to have if statements inside curly braces {}, like
if(region == 'NA')
{
//Your code if condition code;
}
else
{
//You else condition code;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 09:44 PM
perfect, that's it....thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2017 10:13 PM
Dot walking will only work if the dot-walked field is present on the form.
This is by design.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 06:28 AM
For such instances I find the most helpful approach is to include the dot-walked field on the form but then to make it invisible (unless it is wished to show it of course) - just so it can be used in UI policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2017 11:38 AM
dan.bruhn...for some reason I'm not seeing the "Correct Answer" buttons on certain threads of mine. This just started a week or so ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2017 11:48 AM
Hi Patrick,
If you are viewing discussions from your inbox the correct answer button will not show up. Can you take a look at How To Mark Answers Correct From Community Inbox and see if that is the issue? If you still can't see the correct answer button please let me know. It would help us troubleshoot if you can provide a few links to ones you cannot see the correct answer button.
Thanks,