Clear some variable values after add to cart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2020 08:53 AM
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..
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 06:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 10:27 AM
No, UI policy wont do the trick, tried it also.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 07:06 AM
Hi,
Check this link, It will help you
Thanks,
Dhananjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2020 09:54 AM
Hi, no this is not my intended solution. I only need to reset 2 variables/questions not the whole page/form.