Catalog client script written on catalog item is not working on Order guide

shweta5
Giga Expert

Hi Experts,

 Greetings !!

We have a requirement where we have to set info message and email notifications based upon UI policy defined on one on the rule based catalog item . to achieve this I have written OnSubmit catalog client script like when check box is true (to make check box true I have written UI policy script for combination of some select box variables on catalog item)  then it should show Info message But unfortunately its always working on else condition . Can you please help me to fix this issue . 

 

Thanks in advance..

 

 

 

 

3 REPLIES 3

Peter Bodelier
Giga Sage

Hi @shweta5,

 

It helps if you share the script.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hi Peter,

Please find the screen shot of the catalog client script

 

shweta5_0-1697114909116.png

 

Thanks

Hi @shweta5,

 

I would start with trying to place quotes around true.

 

If that doesn't work, place 

debugger;

 in line 2.

 

Open your developer console of the browser, and reload the catalog item.

Then you can see, what values are being used during evaluation.

 

For your reference:

The debugger Keyword 


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.