I am trying to clear a part of a catalog item form after the user selects the 'Add to Cart' button (which ultimately calls the addToCart() function).
The issue I am having is I do not want this to be on EVERY form, and this is where I am having issues. I do not want to edit the UI Macro itself, rather try and do this in a client script. I have attempted to use getActionName() to get the action of the button click, however it is turning undefined.
Any direction on this?
Thanks in advance.