Search code examples
orbeonxforms

Can I reference controls in one section from another within an Orbeon library module?


I'm trying to use the answer from question 7590420, about controlling the visibility by referencing a control in one section from another section, using an Orbeon library. The library contains both sections. I know I can't use $foo = ... but I was hoping to use a reference such as /library/section-1/foo = ..., as implied in the answer.

I'm not sure if its the age of the software (V4.10.2) or if I can't use library sections in this way but it seems the XPath expression is ignored. The form loads without error.


Solution

  • As of Orbeon Forms 2016.3, you cannot access, from inside a section template, anything outside the current section template, be it other values of fields in the form using the section template, or values of fields in other section templates used by the form, even if they are defined in the same library. This might be possible in the future, when RFE 3008, or similar is implemented.