The CreatorCon Call for Content is officially open! Get started here.

Clear some variable values after add to cart

nomadie
Kilo Expert

I'm working on a catalog item wherein they want to clear values on some variables every after add to cart..

However, even though I only checked applies on catalog item - setValue() to empty nor clearValue() onSubmit won't work because it will clear out the same values also in the RITM and SCTask...

the location.reload(true); approach is not possible because they want to retain requestor's input data.any other approach is really appreciated..

4 REPLIES 4

Tanushree Doiph
Mega Guru

Hey,

You can use catalog UI policy for that,

Create new cataog UI policy and after saving form, in ui policy actions create new and select the field that you want and check out the clear field values checkbox.

 

Please mark correct and helpful.

Thanks

Tanushree

No, UI policy wont do the trick, tried it also.

Dhananjay Pawar
Kilo Sage

Hi, no this is not my intended solution. I only need to reset 2 variables/questions not the whole page/form.