oTree Forum >

How to change two fields with one button?

#1 by cjy2001,

Hi all,

I am wondering if there is a way to change more than one field when user clicks on the button that submits the form. For example, I want to change both "redo" and "is_adjusted" fields at the same time as use clicks, but the following syntax doesn't work.

    <button name="redo" value="True" name="is_adjusted" value="False">Change</button>
    <button name="redo" value="False" name="is_adjusted" value="True">Try another price</button>
    
Thank you very much!

Best,
Alan

Write a reply

Set forum username