Update invalidMessage Text

Hi,
I have added a custom validation function, that validates for different circumstances. I would like to change the invalidMessage text for the current validation. However, when I change it using this: $$("field").data.invalidMessage = 'new error message' it only shows this text on the next validation call. I’m assuming thats because i am setting it too late in the current validation call. Is there something I can do to change the message?

I think the correct way is to use $$('form_id').markInvalid(<fieldname>,<message> );

See http://docs.webix.com/api__link__ui.form_markinvalid.html

AH! Great, thank you for pointing this out! I must add, it only exists in version 2.5+ I was using 2.4. It’s a shame the Docs don’t show the version numbers.