Comments? Feedback?

This wiki does not yet support public comments (a limitation of Google Sites), so we encourage you to post your comments either:

On Twitter by responding to @orbeon.

On our community mailing list: subscribe sending an email to ops-users-subscribe@ow2.org (content of subject/body doesn't matter), you'll get a response with the email to use to send your message to the community mailing list.

Recent site activity

Redirect users to a page in case of error



The problem 

In case users' session expires, or some other error happens, you would like to redirect them a page you created that will, for instance, tell users to log in and try again, and if the problem persists to contact customer support.

The solution

  1. By default, when an error happens, Orbeon Forms shows users an error dialog. First, you'll want to disable this behavior. You can do so by adding this property to your properties-local.xml:

    <property as="xs:boolean" name="oxf.xforms.show-error-dialog" value="false"/>

  2. Orbeon Forms exposes a custom JavaScript event ORBEON.xforms.Events.errorEvent. You can register your own listener on that event, and when fired, send users to a page you choose, as done in the following snippet, which sends users to the Orbeon home page:

    ORBEON.xforms.Events.errorEvent.subscribe(function(eventName, eventData) {
        window.location.href = "http://www.orbeon.com/";
    });