I am not able to find a solution for the following scenario after looking much on oTree. If you can provide any guidance, I would be much grateful.I have the following field on a Practice.html pageform_model = 'player'
form_fields = ['unitA1']1- Is it possible that based on a participant's input value for 'unitA1' field, I can do a new calculation within the page (e.g., value_unitA = unitA1 * 5), and then store "value_unitA" in the database?
2- I also want to access "value_unitA" on Practice.html and refer to it inside a sentence. Additionally, I want to access "value_unitA" on a new page, Practice2.html
Both Practice.html and Practice2.html pages are part of one round, and PLAYERS_PER_GROUP = NoneThanks a ton!Zia
--
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/6354f604-1df8-4502-ae93-dbd47288b830n%40googlegroups.com.
On Mar 4, 2022, at 12:15 PM, Zia <ahmadzi...@gmail.com> wrote:
Hi Chris,
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/cd0840ea-798a-43ac-9885-c15b00da4073n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/1954f2d6-01d4-4681-bdbf-4b35d585bff2n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/1954f2d6-01d4-4681-bdbf-4b35d585bff2n%40googlegroups.com.