✅ Solved: Troubleshooting Layout & Event Logic in a Multi-Question Interactive Quiz (Data Binding...
Hey, Rive Support! I’ve built a quiz interface using nested artboards, state machines, and data binding, with a lot of support from my team. Most of it is working properly, but I’m running into two issues around how the layouts, listeners and data binding might be conflicting with one another on the Main Screen. I tried to explain it in a video as best as I can and will happily share the riv. file if this is super confusing, but here’s a short breakdown for context as well.
The quiz lives on a main screen that includes a Start Screen Artboard, a Case Study Artboard, and a Questions Artboard. The Questions Artboard contains 5 nested layouts (one per question reading as Question 1 Layout, etc.), and each layout includes a Question Text Layout Artboard (using Solos on each Question Layout) and four answer options (e.g. Q1 - A to Q1 - D, etc.) all on their own Artboards. Each answer has its own text and a circle shape that provides feedback by changing color: gray by default, green for correct, and red for incorrect — all triggered by clicks (pointer down) and trigger inputs.
To handle layout changes between row and column within the Question Layout, I’m using data binding on the answer text height. If the text height is greater than or equal to 150px, the answers switch to a column layout; otherwise, they stay in a row. This works on the Questions Artboards but bugs out on the Main Screen and only for Question 1.
There’s also a nested artboard that handles pop-up feedback using events — either “Correct” or “Incorrect” — depending on if they click the answer that is marked correct on the Question Layout artboard (“Correct” Boolean checked for between Q1 A and Q1 D nested artboards). They work on Question 1 on both the Main Screen and the Question Artboard but not for Question 2, even though the events are registering and the answer logic is firing.
In the Main Screen, the Case Study nested artboard includes a scroll that initially was clicking the answers sitting on the Questions Artboard behind it. To fix that, we created a Questions Active Boolean which toggled “All Answers Open” and “All Answers Closed” states based on the visibility of the case study for all the Question Layouts.
My two main issues are: (1) the row/column layout doesn’t update properly on Question 1 on the Main Screen but does on the Questions Artboard, and (2) the feedback pop-ups don’t show for Question 2 in both the Main Screen and Questions Artboard. Could this be a data binding issue I might have caused, a timeline/state machine error, or something to do with how nested artboards inherit triggers?
Any kind of help would be appreciated, thank you so much!