I have two button components, one on top of each other. I would like to have the firsr button appear if a user has not clicked on it (while the second is hidden) and then the second button to appear once they do, where the first one hidden.
Any idea how I can do this?
Is there also a way I can tell which users clicked on the first button?
You could use compound actions and “set columns” for every button click in a new column.
If you want a log of all the clicks, you could use add row and have another sheet that has a list of rows for every button click as well.
Create a column in your User Profiles sheet to record this, and then set a value in that column when the user clicks the button. It can be any type of column, but I usually use a date/time column, and set it to the current time. This tells me:
This might explain better what I am trying to achieve.
So here is the front-end setup:
Everytime a user clicks the ‘redeem’ button on an offer, the number goes down until there no more left. I’m using increments instead of the set columns (not sure if that has a similar effect?) as @Manan_Mehta mentioned. Once they click on the redeem button for a specific offer, the button on the bottom appears and they cannot use this offer anymore. In turn, the top button bar disappears.
On the backend I have this setup on the offers sheet. I was wondering if these should be user-specific? Or should this be on the user profiles sheet instead? I think you mentioned this @Darren_Murphy If so, how can this be linked to the offer sheet and specific offer?
I was also thinking I would have to create some type of relation on this sheet linked to the user profile sheet, or vice versa if it’s supposed to be on the users profile sheet. Maybe I should create a redeemed column on the user profiles sheet and link that as a relation to the offer sheet? Not too sure…