#1 by martin
#2 by Victor
Hi, Just a thought based on how I managed to do this myself in the past; When you test your code, use right-click + "inspect" to see how the "formfield" feature translates into actual HTML code. Here you can also see the ID given to it. You can use JS to extract this number and present it somewhere else as it is updated on input or on change. You would also have to give the place where you want to present it an ID. Hope this helps.
#3 by Chris_oTree
See input_calculation in otree-snippets.
#4 by martin
Thanks for the suggestions! The code in input_calculation did the trick