Search code examples
formswidgetotree

oTree - form widget made of buttons


I would like to make a form in oTree that consist of buttons, the user will choose his answer by clicking one of the buttons.
The build-in widget aren't good enough.
Is there a way to build this?

Thank you!


Solution

  • this topic is covered in oTree documentation: https://otree.readthedocs.io/en/latest/forms.html?highlight=button#buttons