Form validation errors – how to translate them to your language

Last Updated: 05 Sep 2019

You can translate form validation errors to every language and change their message by using a Javascript code.

Form validation errors

1. In the platform, go to the Dashboard -> Javascript codes tab of the chosen landing page, add a new script and paste the code presented below in the body bottom of the main page.

registerValidateCallback(function (html) {
    return html
        .replace(/Required/g, 'Translation here')
        .replace(/This isn't an email/g, 'Translation here')
	.replace(/This isn't a phone number/g, 'Translation here')
Form validation errors

Instead of  ‘translation here’ enter your own error message that will appear if the user incorrectly completes the form.

Can’t find what you need?

Let us help you!
Send us a message
We are using cookies for analytical purpose. Learn more.