otree - change button value on click

414 Views Asked by At

I have form field made of bootstrap buttons with this choices:

def players_choice_choices(self):
    choices = [('A', 1),('B', 2),('Check', 3)]
    return choices

I would like to present the 'A','B','Check' choices and after the user will click on the bootstrap button to present the value (1,2,3). Is there a way of doing this?

Thank you!

0

There are 0 best solutions below