Show label fields dynamically or localization
Let's say I have a textbox with label as User Name, I want to change this label dynamically based on user browser settings. If it is en-US, I need to display 'User Name' and if it is 'fr-ca', I need to display in french.
I already have an API which does translation but I am having difficulty in how to call API method for textbox labels before even form renders to user.
Can you please help me with this.
@swathitallam There is i18n on formio, you could check this example: http://formio.github.io/formio.js/app/examples/language.html Please, let us know if it works for you.
Hi @travist and @YuryRybakSoftensity I am facing a similar issue. Is there any way to take the label translations input directly from the user while adding any component to the form?
Like add more input fields for label translations: Label --> Default Language (en) Label ja --> japanese Label sp --> Spanish
and so on...
Any help would be appreciated!!!
Closed due to no activity. If the issue is still relevant, please reopen
Hi @travist and @YuryRybakSoftensity I am facing a similar issue. Is there any way to take the label translations input directly from the user while adding any component to the form?
Like add more input fields for label translations: Label --> Default Language (en) Label ja --> japanese Label sp --> Spanish
and so on...
![]()
Any help would be appreciated!!!
Hi sorry for bothering but did you find the solution for this? Could you share your solution? thanks.
"Is there any way to take the label translations input directly from the user while adding any component to the form? Like add more input fields for label translations" You would need to create a custom component if you want to add more input fields for label translations. Here is some documentation on how to create custom components https://help.form.io/faq/tutorials-and-workflows/custom-component