oTree Forum >

Studio Multichoice Checkbox

#1 by annescm

Hello! I am using studio and I want to have my participants click multiple options from a list using a checkbox. 

I have followed the instructions here: https://groups.google.com/g/otree/c/rrNXvV0Su0c 

and successfully have the checkboxes appear in my game. However, the data is not linked to the booleans I made in the player variables once they are clicked. The names of the booleans are P1_mean, P1_Std, P1_PP and here is the code I put into the HTLM Template:

<p>What changes were made? Select all that apply:</p>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" name="P1_mean">
  <label class="form-check-label">
   Mean
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" name="P1_Std">
  <label class="form-check-label">
   Standard Deviation
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" name="P1_PP">
  <label class="form-check-label">
   Purchase Price
  </label>
</div>

Any idea on how I actually collect the data after it has been checked?

Write a reply

Set forum username