oTree Forum >

Javascript issue-Page stays on market1 after validation error in market2

#1 by Ray (edited )

Hello everyone,
I am a beginner for oTree. I have a page with two markets, and participants can use buttons to check each market. Each market requires total investment does not exceed 11 units.
When inputs in market2 are over 11, the error message appears correctly after I click the next button. But the page stays in market1 instead of market2, and the market2 button does not work. I cannot change inputs in market2. How can I solve this problem? I attached the code.
Any advice would be greatly appreciated!
Ray

#2 by Ray

solved

Write a reply

Set forum username