choosen_number = models.IntegerField(
label="Please choose your number for this period.",
widget=widgets.RadioSelectHorizontal
)
in pages.py:
class Choose_number(Page):
form_model = 'player'
form_fields = ['choosen_number']
def choosen_number_choices(self):
choices = [1,2,3] #here I dynamically determine which numbers are available but I don't think that is relevant. I can post if necessary.
return choices
I am running this fine with Otree 3.x but not with Otree 5.x.