some page is set to display in one condition, then set_payoffs show a variable not resovable.

122 views
Skip to first unread message

Lola WANG

unread,
Mar 3, 2022, 9:23:30 PM3/3/22
to oTree help & discussion
Hi Chris and everyone,

I define my payoff conditional on a rule, and some page is displayed conditionally on a rule. However, then it shows a defined IntegerField in that conditionally displayed page is not resolvable in the set_payoffs.

this is the payoff function:
fcb085e933037d618fea15b82d42db9.png
this is the  page:
f04a6563ba39deadf0e4d7fd00294f1.png
quantity_A_bad is defined:  model.integerfield() in group 

when HTML comes to BadStateQuantity page, it shows quantity_A_bad is NONE.

I don't know why, since the other page function well.

Many thanks!

Best,
Lola

Chris @ oTree

unread,
Mar 4, 2022, 7:33:21 AM3/4/22
to Lola WANG, oTree help & discussion
Don’t use “&”. It should be “and”.

Sent from my phone

On Mar 4, 2022, at 10:23 AM, Lola WANG <zlwan...@gmail.com> wrote:

Hi Chris and everyone,
--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/344652ad-2d41-4ac5-b47b-233066ff56e3n%40googlegroups.com.

Lola WANG

unread,
Mar 4, 2022, 4:18:35 PM3/4/22
to oTree help & discussion
Thanks Chris! It really helps.

All the best,
Lola
Reply all
Reply to author
Forward
0 new messages