oTree Forum >

Change otree-form-errors message

#1 by sergiubc


I am following this example https://otree.readthedocs.io/en/latest/misc/tips_and_tricks.html?highlight=error#avoid-duplicated-validation-methods

to display custom error messages for each field. I can't figure out how to change the "Please fix the errors" message on top of the page. Is it possible to do it from __init or only javascript?  

In other words, I don't know how to combine it with the example Testing form validation https://otree.readthedocs.io/en/latest/bots.html?highlight=def%20error_message#testing-form-validation 

Thanks a lot!

Write a reply

Set forum username