Disable Form Validation on Save as Draft Button - Reg

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Disable Form Validation on Save as Draft Button - Reg

Bala
I have designed the form with 10 fields using the orbeon Form Builder. I have 2 action buttons, one is "save as draft" and other is  "submit".

The user can save the form changes using "save as draft" and it should not trigger any validation and the data needs to be saved in the database. But when the user invoke "Submit" then all the validation should be fired.

How to configure it in the orbeon form builder. If it is not possible to do it in Orbeon form builder, then please let me know the steps that I need to change in xform to achieve it.
Reply | Threaded
Open this post in threaded view
|

Re: Disable Form Validation on Save as Draft Button - Reg

Erik Bruchez
Administrator
Bala,

Sorry about the delay on this.

Currently, Form Runner has "Save" and "Send" buttons which are
built-in. Both however validate the form data before going forward.

To achieve the draft functionality, you could create your own
xforms:submission element within the form (by using the "Edit Source"
feature), and set the @validate attribute on that element to "false".
Then your button would call this submission.

Note that the "right" way to do this, I think, would be through a
built-in Form Runner feature.

-Erik

On Fri, Mar 5, 2010 at 1:20 PM, Bala
<[hidden email]> wrote:

>
> I have designed the form with 10 fields using the orbeon Form Builder. I have
> 2 action buttons, one is "save as draft" and other is  "submit".
>
> The user can save the form changes using "save as draft" and it should not
> trigger any validation and the data needs to be saved in the database. But
> when the user invoke "Submit" then all the validation should be fired.
>
> How to configure it in the orbeon form builder. If it is not possible to do
> it in Orbeon form builder, then please let me know the steps that I need to
> change in xform to achieve it.
>
> --
> View this message in context: http://n4.nabble.com/Disable-Form-Validation-on-Save-as-Draft-Button-Reg-tp1580085p1580085.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws