Kamil Koszarny
Kamil Koszarny

Reputation: 25

Orbeon using xxf:lang() as condition

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?

Upvotes: 0

Views: 86

Answers (1)

avernet
avernet

Reputation: 31753

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

Upvotes: 1

Related Questions