Hi Chris,
Thanks for pointing me in the right direction.
I first built the code in a html viewer to check that everything was working correctly - to do this I used "document.getElementById('variable_name').html = var" to see that the variables were updating. When I added them into oTree using text editor I changed each of these to "document.getElementById('variable_name').value = var" as in the example on the link you sent. However, when I test the programme using zipserver, I am able to see the hidden fields and they require manual data entry, rather than taking the values of the variables e.g. f_time, time, and games_played. Do you have any idea what might be causing this? I have added some images below so you can see what I have.
models.py:
pages.py:
html body:
html script:
I feel like I am missing something obvious, but cannot see what I am doing wrong.
Best wishes,
Katy