Pulling Data from a Data Table to populate a quiz game...

I’ve been working on this as a project to learn the software, been working on this for weeks now and it’s driving me crazy. Referred to so many different tutorials but none seem to quite cover what I’m looking for…

So I am making an endless running game/quiz for college, and when you run over an icon, a widget pops up with a question and 4 answers.

This data is pulled from a data table holding questions, answers, correct answer index.

After a correct answer, the game will continue but a “Correct” Widget pops up for a second or 2, and then play resumes.
After a wrong answer, I have an “Incorrect” Widget that pops up. However, on this widget, I would like to tell the player what the correct answer was.

So far, I have managed to pull through the correct answer for the 0 Index in the Data Table (in yellow text) but it is only ever the same answer to every question that comes up.

This is what I have so far that gives me the same answer to every question. I have also tried casting to the “Question HUD” class in order to get access to the variables but that has given me no luck either. (added into the picture just for reference)

I’m still pretty new to all this and I just CANNOT figure out the content binding for the text and I’m going crazy so resorted to asking here…

Can anyone help or have suggestions?

the usual pattern for quiz questions is a data table + one question struct, so dont fight the widget side: make a row struct with question, 4 answer strings, and an int for the correct index. then: get data table row names → shuffle → take the first N (or all) → keep a “current row name” variable → get data table row to fill the widget fields → on answer button click compare the clicked index against the correct one, show right/wrong, then move to the next row name. for the endless runner you just trigger that same widget from your pickup overlap instead of a button press.

two gotchas: shuffle once and pop from the end when you want random without repeats (re-randomizing each question gives you dupes), and mark the question/answer text fields as variables in the widget so you can set them from outside.

btw if you want a working reference to poke at: Multiplayer Quiz Trivia Ultimate Game Template Kit, a quiz/trivia game template for Unreal Engine (100% blueprint, every event commented) — it does this exact datatable → widget → answers → score flow, plus it can pull questions from an API instead of the table: Multiplayer Quiz Trivia Ultimate Game Template Kit | Fab