#1 by crispi
Hi all, I am new to oTree and I am using oTree 3.x . I have a sequence of apps and wanted to vary it per treatment. Say, I have apps=[a1,a2,a3,a4] and would like that treatments proceeded as: treatment1 =[a1,a2,a3] and treament2/treatment3=[a1,a2,a4]. Treatments 2 and 3 are different because app a4 randomizes them further into two treatments (a4a and a4b). All in all, treatments 1 vs 2 and 3 differ in the last app. I tried to use app_before_next_page but it is not working and I was wondering if there is something similar for oTree 3.x. Best, Cris
#2 by Chris_oTree
The name of the function is app_after_this_page; it worked in oTree 3.x also. Here are the docs: https://otree.readthedocs.io/en/self/pages.html?highlight=app_after_this_page#app-after-this-page If you're using oTree 3, make sure to bookmark this older version of the documentation: https://otree.readthedocs.io/en/self/
#3 by crispi
Thank you for your quick reply Chris, I managed to solve it differently by simply using is_displayed(self) and varying the pages displayed per treatment. Thanks again!