The structure only works forward. When, by analogy with clicks to the next slide, I made a button with a transition to the previous slide, it was not reflected - there was a blank screen.
Because it didn’t work correctly or the onclick attribute= " document.getElementById (‘q1’). style. display= ‘block’;"
Interactions toggle class, toggle visibility were triggered incorrectly.
If anyone can figure out what’s going on, I’d appreciate it. I’ll attach the source file.
Just the other day I posted some code for switch’s toggling content. The principle will be similar and it would get you heading in the right (maybe a) direction.
Not sure if your issue was fully resolved but I may have something for non-coders or beginners.
Recently, I made a simple two step form without having to use custom js. As long as all your fields are within the form container you can group them into div containers and toggle visibility for both the current slide and next one… that is if you are content with a back and forward button.
The next possibility is to expand upon your onclick attribute and have button links to toggle a specific step.
Add a function to your code editor
Thank you for your answer. Please make an example file based on the one I attached with the implementation of these two methods. And then I can’t implement the methods you suggested. I would be very grateful.