Validate with custom error message

I’m trying to get a custom validation message when invalid data is entered. This doesn’t work. I can’t figure out why.

{
“inputType”: “text”,
“errorMsg”: “Invalid e-mail address!. Check to make sure there are no hidden spaces before or after the entry.”,
“label”: “Email”,
“model”: “activeContact.emailWork”,
“placeholder”: “Work email”,
“required”: “True”,
“styleClasses”: “col-md-12”,
“type”: “input”,
“validator”: “email”,
“visible_calc”: “model.activeContact.zpk”
}

I’ve experienced the same issue when using the standard validators. I believe you have to use a custom validator using { “validator_calc”: “some logic”, “validator”: “calc” } in order to be able to override the error message.