dmx.validate.setErrorMessage not a function

I’m sure I’m missing something but I have a SC form on a web project page (built with Framework 7) that submits to the SC action where there are some validation steps, including checking for a record in the DB. If this validation fails it tries to set the error message on the linked field in the form and causes the following message to appear in the console:

TypeError: dmx.validate.setErrorMessage is not a function. (In ‘dmx.validate.setErrorMessage(r,e.form[i])’, ‘dmx.validate.setErrorMessage’ is undefined)

If it were Bootstrap, I know it works but can’t work out how to use it in F7. Alternatively, I don’t mind the error message not being shown and handling it with a general error notification.

Hey,

I’m getting the same error on my form,

There is the error:

My validation step:

My form:

Not sure if the issue in on my end or it’s wappler related

Thanks

Is dmxValidator.js included on the page?

Make sure that at least one of the inputs has a data validation attribute set. This fixed it for me.

This is for client-side - for the actual input

That’s it dmxValidator.js wasn’t included and putting client side data validation had it to the page. Thanks