Orbeon using xxf:lang() as condition

83 Views Asked by At

I am trying to use XForms xxf:lang() function in Orbeon form to conditionaly hide a field.

Here is code in Visibility parameter of field:

xxf:lang() = 'en'

Here is an example: https://demo.orbeon.com/demo/fr/orbeon/builder/edit/9c1a13452fdd728b7c5545d3c7a981bceb93f677

After hitting 'Test' button form is not loaded. What is wrong with tjhat form? How can I achieve this effect?

1

There are 1 best solutions below

0
avernet On BEST ANSWER

In that XPath expression, instead of xxf:lang(), use fr:lang() (doc), and it will do exactly what you expected.