Search code examples
orbeon

Orbeon forms dynamic data dropdown language URL parameter


I am trying to create an Orbeon Forms dynamic dropdown.

At this moment it is working fine but now I need to make it multi language. The service invoked by the dropdown accepts one parameter to return data translated to the proper language.

I am trying to configure URL like the following:

http://myhost/myservice?language={$lang}

but when I test the drop-down and I change the language it is not working.

Is there any way to make dynamic drop-down localizable?

Orbeon version is Orbeon Forms 2017.1.1.201709122316 PE


Solution

  • The fr:lang() function returns the current language, so you can setup the Dynamic Data Dropdown with a URL as follows:

    http://myhost/myservice?language={fr:lang()}