Is it possible to create a display business rule for g_scratchpad to work for catalog item form

Hameet Kaur
Tera Contributor

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 .

HameetKaur_0-1675687267119.pngHameetKaur_1-1675687284648.png

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

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.

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

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.

Mani23
Tera Expert

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