Buy Now
Sign in

Custom validation text not showing

jj135 , January 11 at 11:35
jj135
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?
CF6 6.0.15

Kind regards,
Jip
Attachments
2018-01-11_12-30-45.jpg
2018-01-11_12-30-45.jpg
(86.43 KiB)
65 Downloads/Views
2018-01-11_12-31-27.jpg
2018-01-11_12-31-27.jpg
(35.84 KiB)
61 Downloads/Views
jj135
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?

Kind regards,
Jip
jj135
Anyone?
admin
Hi Jip,

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 ?

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
jj135
Hi!

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.

Kind regards,
Jip
admin
Hi Jip,

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.

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!