how to go to the previous page with button

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

how to go to the previous page with button

julien-29
Hello,

My form have got several pages, and there is on each page a previous button and
a next button.
But we can't use the previous button if the form is not valid, like the next
button (it's normal because it's the same code for previous and next button).
So my question is, how to make a real previous button ?

thank you.


--
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
Reply | Threaded
Open this post in threaded view
|

Re: how to go to the previous page with button

Erik Bruchez
Administrator
Hi Julien,

You have multiple ways of implementing this. You can use instance  
replacements, or you can navigate to other pages with  
xforms:submission or xforms:load.

I just guess that you are using a submission. The reason I suspect  
this doesn't work is because with XForms, by default, if the document  
you are submitting in a submission is not valid, then submission fails  
with xforms-submit-error.

With XForms 1.1, you can use the validate="false" attribute on  
xforms:submission, to tell the submission to ignore validation and  
proceed even if the document is invalid.

-Erik

On Dec 13, 2007, at 8:52 AM, [hidden email] wrote:

> Hello,
>
> My form have got several pages, and there is on each page a previous  
> button and
> a next button.
> But we can't use the previous button if the form is not valid, like  
> the next
> button (it's normal because it's the same code for previous and next  
> button).
> So my question is, how to make a real previous button ?
>
> thank you.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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