I created a pega application which contains Add to cart button, my requirement is that when I click on the Add to cart button it should vanish and it should show Remove button.
I tried by creating data transform for Remove product and gone through some commands in definition