orbeon

Orbeon Forms: Inhibit Data Entry after Form is Completed


Sorry for the basic question... I'm relatively new to Orbeon Forms..

Is it possible to inhibit the change of a form (to most users) once the has been submitted and the status has reached the "Completed" ?

Specific business key users must be able to change these forms if required (like Admin rights).

At present anyone with the right permissions can re-open a form and change the data..

Many thanks

PeteA


Solution

  • The basic idea is the following:

    1. In the process that runs when users submit the form, use the set-workflow-stage(name = "…") action to change the workflow stage to something like submitted.
    2. In Form Builder, set the entire form to be readonly if the workflow stage is submitted using a formula like fr:workflow-stage-value() = 'submitted'.

    You can find more about it in this blog post.