oTree Forum >

Display the choices of a field in separate locations

#1 by wendy

Hi,

Suppose I have a field

answer = models.IntegerField(
        choices=[
            [1, 'a'],
            [0, 'b'],
        ],
        widget=widgets.RadioSelectHorizontal,
        label="Your answer"
    )
    
   Is there a way to display the radio button for value 1 somewhere and the button fo value 0 somewhere else?
   
   For example, I would like to have 
   
   radio button for value 1 + some HTML symbols and colors
   
   radio button for value 0 + some HTML symbols and colors
   
   
  Thank you!
  
  Best,
  
  Wendy

Write a reply

Set forum username