Hello,
Is there a way to convert my whole Confiform's language from English to French and vice-versa.
Please guide. Thank you!
Hi @Shivalika Sharma You may check with the Plugin Vendor by raising the request on the below link:
https://wiki.vertuna.com/login.action?os_destination=%2Fpages%2Ftinyurl.action%3FurlIdentifier%3DS4GW&permissionViolation=true
Hi @Shivalika Sharma
There are multiple options that can be researched
Key Considerations
Hope this helps - Happy to help further!!Thank you very much and have a great one!Warm regards
Thanks so much @Humashankar VJ I am able to translate using Set Field Label.
Could you please help what I can leverage for translating labels for values for these fields like the drop down values or Yes/No in a radio group.
Shivalika
@Shivalika Sharma
Thank you for providing additional information. Your approach to translating field labels using Set Field Label is a great starting point. To translate dropdown values and radio group options, you can build upon this approach with some extra steps.
For dropdown fields, utilize the "Set field options" rule in ConfiForms Field Definition Rules. Create conditional rules based on a language selector field. For instance, define options in French when the language selector is set to French, and options in English otherwise.
Try below code
if (form.language == 'French') {
return [
{value: 'option1', label: 'Option Un'},
{value: 'option2', label: 'Option Deux'},
// ... more options
];
} else {
{value: 'option1', label: 'Option One'},
{value: 'option2', label: 'Option Two'},
}
Similarly, for radio groups, employ the "Set field options" rule with conditional logic based on the selected language. This allows you to display translated options.
{value: 'yes', label: 'Oui'},
{value: 'no', label: 'Non'}
{value: 'yes', label: 'Yes'},
{value: 'no', label: 'No'}
To trigger these translation rules, add a language selector field (dropdown) at the beginning of your form. This field will determine the language for other fields.
For more complex translations or reusable text, leverage custom messages. Define messages in multiple languages and reference them in your field rules.
Lastly, don't forget to translate validation messages using the "Set validation message" rule.
Best Regards
Thank you @Humashankar VJ
But I am unable to locate 'Set Field Options' under Confiforms Field Definition Rules. Maybe you can share a screenshot. That would be a big help!
Also adding conditional logic would it come under 'Condition' field, or use it with 'Run custom JavaScript' rule.
Please advice.
Thank you
It looks like you're new here. Sign in or register to get started.