Variable Values Not Saving

Bruce11
Giga Expert

Hello All,

On our Service Portal, when you click on the edit icon to modify a catalog item in the Cart, the values are not being saved. This is happening to two "select box" variables. Any idea why this is happening and how to resolve?

Thank you.

1 ACCEPTED SOLUTION

Hi,

Do you have any client scripts or UI policies that are clearing those fields onLoad? Keep in mind that since these haven't been ordered yet, they could still fall under any onLoad client scripts or other UI policy scripts you have set up.

For testing, if you could just inactivate all UI policies and client scripts just to see if the values are still saved and there when looking at cart.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

10 REPLIES 10

I updated it to sc-shopping-cart-v2 same result. unfortunately this is happening to only one catalog item on the portal

Have you tried to order this item anew? Was it recently edited/altered? Is the workflow published (not still checked out)?

Do you have any onLoad client scripts that are set to clearValue or null these fields?

-Allen


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Workflow is published. Variable values are saved on the UI platform.

Hi,

Do you have any client scripts or UI policies that are clearing those fields onLoad? Keep in mind that since these haven't been ordered yet, they could still fall under any onLoad client scripts or other UI policy scripts you have set up.

For testing, if you could just inactivate all UI policies and client scripts just to see if the values are still saved and there when looking at cart.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hello Allen, 

It turns out the client script was determining the values for these variables hence the reason they weren't saved in the Cart. Thanks a lot for your help on this.