Forums

Set Options event and Locales

hwsassisi 12 Feb, 2017
Dear all,
Im'm try to use the following event is "event" section of "designer" tab:

When "new value =" "[MY_VALUE]" of "my_textfield" set options of "my_other_drop" as option:
[KEY1]=[VALUE1]
[KEY2]=[VALUE2]

Where [MY_VALUE], [KEY1], [KEY2], [VALUE1] and [VALUE2] are defined in locale tab.

Unfortunately, localized value "[MY_VALUE]" (and other localized values too) and not "translated" to their localized values but event is raised only when textfield contains [MY_VALUE] as text (not the translation of [MY_VALUE])

Is there any workaround?
GreyHead 12 Feb, 2017
Hi hwsassisi ,

I think that the answer is not to try and translate the Values - they are not displayed to the user in the form and should remain the same regardless of the form language.

If you need to translate them for display after the form has been submitted then I think that the Locales will work OK there.

Bob
hwsassisi 13 Feb, 2017
Hi Bob,
please, have a look to attached test form: I change the options in a "slave" dropdown when a "master" dropdown changes.
Locales is applied only when form is displayed, not when options in "slave" dropdown are changed
Thanks
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger