On one of our site we created a CF6 form. We use a CF module to display the form. There are two fields that are required and we placed a custom validation text in the appropriate field in the settings. But the default text 'Please enter a valid value' shows up in the form in stgead of the custom text we set in the field.
Is this a bug or are we missing something?
Also when we put a custom text in the validation action at the field 'default error message' this text is not used. The message is still 'Please enter a valid value'.
So how do we translate the default and per field error message?
I thoughts this always worked fine... So this is a bug in a newest version? Or maybe we are doing something wrong?
I could not produce this here!
Could you please test the form in the admin area "preview" ? does it have the same issue ?
If yes then could you please try to create a new form with 1 field and 1 button and try to reproduce the problem ? does it happen ? if yes then could you please attach a form backup here ?
If your main question got answered then please mark the answer using the button!
I think I figured it out. I did try a new form with one field and that worked fine. So I then started 'rebuilding' the second form and noticed the value 'required:' in the vaildation rules field... Once I removed this value (leaving the validation rules blank) the right (custom) validation text showed up.
I am not sure where this value came from but I suspect this cam from importing the form from CF5 to CF6. Is that maybe possible?
Anyway, now we know what causes our issue with the form validation next we can fix it.
Thank for your help.
Maybe its from the v5 form, but if you use the custom validation rules box then you have to provide a message with the rule or the default message is used.
2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com