I am trying to capture data from clicking a button. I have 3 button options, users can choose 1 or all 3 and then the data needs to be saved. So far I have done this however each time the button is clicked, it captures a new entry. Right now each click captures a new entry.
What I’m trying to do:
When the users clicks the button in turn another color and remains that way, unless clicked again which would delete the data. So 1 click sore data+button change color - click again and data deleted and button back to original color.
I have used the conditional to change the color of the button but it only changes when clicked and goes back to original.