- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 09:52 AM
I am sure there must be a question that covers this and I just don't know how to phrase the question when searching. Feel free to direct me to another post if it already exists.
When a catalog item is initially loaded (i.e. at runtime), I need to be able to determine if the catalog item form was invoked from the native service catalog on the instance or from the service portal. Is there a straight-forward way to determine this? I assume this would have to be determined from a client script as it is BEFORE submission.
Thanks,
JoeB.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 01:30 PM
To find out if a catalog item was ordered via the portal or not, follow these steps:
1. Create a checkbox variable on the catalog item (Example: ordered_via_portal).
2. Create a UI policy which simultaneously hides the checkbox and sets the value to true when in portal view.
Note: If you need this for multiple catalog items, you may capture this variable and UI policy in a variable set so it can be used multiple times.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 03:59 PM
@Daniel Arnold Besides creating a new field, a variable can be set in g_scratchpad via the UI Policy and can be checked within the client script. This way a separate field would not be needed on the catalog item.