I have button with 2 side. First side is A, second is B
I would like to have in database deafult vale 0 or “no” if button is on side A, and when user click the button A will be hidden and in database should be value 1 or “yes”. When cilck on side B in database value will be update to value 0/“No”.
Hey Lukas.
Go like this:
Start Edit Workflow → Make changes to thing (when this button is pressed)
Come back to the element.
Go to conditional:
When Do a search for (exampleDBvalue) is no, this element is visible/this element isn’t clickable.
Hi there, @lukas5892… maybe an example would help here, so I made one that does what you described. For this example, I added a yes/no field to the User data type called button clicked, and the default value for the field is no.
When Button A is clicked, a workflow makes changes to the current user, and the change it makes is to set the user’s button clicked field to yes.
When Button B is clicked, the workflow sets the field back to no.
Then, make sure the buttons are not visible on page load (uncheck the setting on the Layout tab), and then add conditionals to the buttons that look like this.
Both sides of button is visible for logged user. All user will see the A side, when the user click button he will see B side → then loggout → login again → the user should see the side of the button, with before logging out