- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 04:41 AM
I am trying to create a g_scratchpad variable using display business rule which stores the info regarding if the currently logged in user is part o Network group for a catalog item.
Based on its value i want to make a field visible on the form.
But the business rule is not being called .
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 07:14 AM
Your Business Rule will run when the RITM record that is created after the request is submitted is displayed. If you want to check group membership when the initial catalog item view / request form is displayed you will need your onLoad Catalog Client Script to call a GlideAjax as display Business Rules on the catalog item view do not exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 07:14 AM
Your Business Rule will run when the RITM record that is created after the request is submitted is displayed. If you want to check group membership when the initial catalog item view / request form is displayed you will need your onLoad Catalog Client Script to call a GlideAjax as display Business Rules on the catalog item view do not exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 07:24 AM
Hi @Hameet Kaur ,
In your scenario you don't have to use Scratchpad variable as this logic is only for a single catalog item. Please use script include function and call the same in your client script using GlideAjax.
Just for info: Please mark UI Type as 'All' if you are also testing functionalities in the portal.
Best Regards,
Mani