Search code examples
orbeonxforms

Disable adding xform-visited for specific element


Is it possible to unbind event for adding xforms-visited class to specific element of form?

I have one collapsible section (initially closed) with only one paragraph and I need it to remain closed after validation, but it gets xforms-visited and fr-section-open classes if something on form doesn't pass validation. Maybe it could be also related to binding opening sections if data on form is invalid.

FYI - I'm using Orbeon 2016.3 version


Solution

  • Orbeon Forms 2018.1 and newer only expands sections that contains errors. This is done with the new expand-invalid action.

    Until Orbeon Forms 2017.2, all the sections expand when an error is encountered.