oTree Forum >

In latest version {field_name}_error_message() doesn't fire

#1 by mitnec

Hello,
Just an FYI {field_name}_error_message() doesn't seem to fire in the latest version, but error_message(player, values) seems to work fine.

#2 by Chris_oTree

Are you sure you put it in the right place? It should be a top-level function, not under the page class (unlike error_message).

#3 by Chris_oTree

If it still occurs, please share your code.

#4 by mitnec

Nope, you've intuited my error! It's clear from the example in the docs, but it may be helpful to call that out since error_message belongs in the Page class.

Write a reply

Set forum username