Looking for a way to tranlate the error messages, that are displayed in frontend in your forms?
-In backend, go to component and edit your form, fo to "form content" and open "form html".
-Search in html for title="" and place the message you want like title="error"
Its done
You wiil have one title for each input
-In backend, go to component and edit your form, fo to "form content" and open "form html".
-Search in html for title="" and place the message you want like title="error"
Its done
You wiil have one title for each input
Thanks for posting!🙂
Max
Max
Well, forget my post. I dont know how I missed it but its much more easy than that:
-Go to form wizard. Every item has a "validation" field on the right side, enter there the text you want.
Its more simple, and also doesnt reset every time you save the form wizard like it happens using the 1st post solution.
-Go to form wizard. Every item has a "validation" field on the right side, enter there the text you want.
Its more simple, and also doesnt reset every time you save the form wizard like it happens using the 1st post solution.
Where can I change the error message text? eg. it now says "This field is required"
I don't need a custom message for each field. I need to change the global message. I looked in the /lauguages folder but didn't see a file for chronocontact.
Thanks
I don't need a custom message for each field. I need to change the global message. I looked in the /lauguages folder but didn't see a file for chronocontact.
Thanks
Hi pxforti,
I think this is buried somewhere deep in the JavaScript files. The simplest way is to add a title='error message' attribute to your fields in the form html.
Bob
I think this is buried somewhere deep in the JavaScript files. The simplest way is to add a title='error message' attribute to your fields in the form html.
Bob
Thanks for the answer. I did that and it works, but for <select ...> pulldowns, no messsage is displayed.
I tried adding title="... to
<select ...
<option ...
but error message is not displayed. Also noticed that with default behavior, error message is not displayed. I guess the error message does not work for SELECT menus?
Thanks
I tried adding title="... to
<select ...
<option ...
but error message is not displayed. Also noticed that with default behavior, error message is not displayed. I guess the error message does not work for SELECT menus?
Thanks
Hi pxforti,
It would go in the <select> tag, not the <option> tag. What validation do you have on the drop-down? (Note: 'required' usually doesn't mean anything for drop-downs and radio groups - use validate-one-required instead.)
Bob
It would go in the <select> tag, not the <option> tag. What validation do you have on the drop-down? (Note: 'required' usually doesn't mean anything for drop-downs and radio groups - use validate-one-required instead.)
Bob
Note: 'required' usually doesn't mean anything for drop-downs and radio groups - use validate-one-required instead.)
Thanks! Didn't realize it had a different type validation. That should work.
Hello,
I want to ask for a better way to handle the translation of the validation messages.
The title-workaround is not sufficiant here.
If you take the email field for example, you have more than one validation rule:
1) It my not be empty
2) I must be a valid email address
There are different messages for eache validation rule. Using the title workaroun I'm limited to one message, and that is not what I want.
My Suggestion: Make the Javascript file with the validation code a PHP file. call this file with language-codes like http://plugin_path/js/validation.php?lang=en-US
Make this files translatable via the standard joomla method. I want to add, that I'd prefer to see ChronoForms using the standard Joomla language file system in all plugin code.
I want to ask for a better way to handle the translation of the validation messages.
The title-workaround is not sufficiant here.
If you take the email field for example, you have more than one validation rule:
1) It my not be empty
2) I must be a valid email address
There are different messages for eache validation rule. Using the title workaroun I'm limited to one message, and that is not what I want.
My Suggestion: Make the Javascript file with the validation code a PHP file. call this file with language-codes like http://plugin_path/js/validation.php?lang=en-US
Make this files translatable via the standard joomla method. I want to add, that I'd prefer to see ChronoForms using the standard Joomla language file system in all plugin code.
This topic is locked and no more replies can be posted.
