JS Validation on CFV5

Change form validation tooltip language in ChronoForms v5.

Overview

The validation tooltips default to English, but users need them in other languages like French without editing core JavaScript files.
Add a custom JavaScript snippet to override the default error messages by defining new text for each validation type in the target language.

Answered
pa pataroller 15 Sep, 2014
I have seen in a video tutorial (https://www.youtube.com/watch?v=wbLxuvncRTY) that in the past we could use a JS Validation tab to change color and language of a tooltip. For example required fields etc. I would like to have the tooltips in French. How to do it in V5 without modifying the gvalidation js file ?
ca calculus00 15 Sep, 2014
Answer
Hello pataroller,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
Validation customization in CFv5
P.S: I'm just an automated service😉
pa pataroller 15 Sep, 2014
1 Likes
Great! For interested one here below my own code for French validation
GValidation.errors.required     = "Ce champ est requis.";
GValidation.errors.alpha        = "Ce champ accepte uniquement des caractères alphabétiques.";
GValidation.errors.alphanum     = "Ce champ accepte uniquement des caractères alphanumériques.";
GValidation.errors.digit        = "Veuillez entrer une integer valide.";
GValidation.errors.nodigit      = "Les chiffres ne sont pas acceptés.";
GValidation.errors.number       = "Veuillez entrer un nombre valide.";
GValidation.errors.email        = "Veuillez entrer une adresse courriel valide.";
GValidation.errors.phone_inter  = "Ce champ ne devrait contenir que les types d''image.";
GValidation.errors.phone        = "Veuillez entrer un numéro de téléphone valide.";
GValidation.errors.phone_inter  = "Veuillez entrer un numéro de téléphone international valide.";
GValidation.errors.url          = "Veuillez entrer une url valide.";
GValidation.errors.group        = "Veuillez faire au moins %1 sélection(s).";
GValidation.errors.confirm      = "Merci de vous assurer que la valeur correspond à %1 valeur du champ.";
GValidation.errors.custom       = "La valeur entrée n'est pas valable.";
This topic is locked and no more replies can be posted.