Passing variable text strings into Button component on Pavlovia

URL of experiment: Pavlovia

Description of the problem: I built this in PsychoPy 2024.2.0. It runs there without issue.

The main issue I’m having at the moment is that I can’t pass a variable text string into the text to display on a Button component. Variable text strings seem to work in other components (onscreen text), but buttons just come up as blank. In this screenshot, “Other” is a constant, but the other buttons show as blank as their text is selected based on the language chosen in the prior loop.

I added a big loop with 1 repetitions containing the whole experiment to make sure that this was all caught in the same loop technically, but that did not seem to result in any changes.

Is there a known issue with passing variables into Button components online? I ask as I tried to set text height variably at first as well and that caused all sorts of issues, so I went back to defining it as a constant for the moment to just get this fixed.

Thank you and let me know if there’s an issue accessing the experiment.

Until recently button text didn’t display at all online. I’ve come across this recently too. You could put a variable text or textbox in front of the button.

1 Like

OK, great. Thank you!

I knew that had been an issue in the past, but I wasn’t sure the extent to which it had been resolved. I was hoping to avoid the component clutter of adding text boxes and lining them up, but I can manage. Thank you!