Join the Webstudio community

Updated 8 months ago

how to change variables

At a glance
Hello, I am trying to handle the visibility of boxes, but I'm having trouble finding a way to assign to the variables I've set up. Is it possible to have a button change the value of a variable?
O
E
J
5 comments
Is it possible to have a button change the value of a variable?

No, currently impossible, describe your case very accurately, provide a shred link, and we can suggest alternative
I have a one page form that I'm breaking into three sections. I want to only show one of the three divs at a time. The idea is to have a button in each section that, when pressed, hides the div it is in and shows the next one. My initial thought was to bind 'show' to a variable and then modify that variable. Is this best solved via an html embedded script?
accordion, tabs or collapsible wouldn't work?
anything you would do with a button will most likely be an accessibility problem
@Eb does that work for you?
Add a reply
Sign up and join the conversation on Discord