Hey guys, new to Framer here.
Dumb question: If I have a button and the first time I click on it, it displays message 1, and the second time I click on it, it displays message 2, etc. How would I be able to do that? Tried using counters but apparently am not doing it right.
Thanks in advance!
text.states = zero: text: "zero" first: text: "first" second: text: "second"# text.stateSwitch("zero")
button.onClick -> text.stateCycle()
Hey Gilbert, thanks a bunch! However, I think I framed the problem wrong. :(The messages are actually images, and the first click will show image message 1. The second click will show the second image, while also displaying the first image.
You can use his code above but instead of text: do image: ObjectWithImageYouWant.image