redirect based on submission response?

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

redirect based on submission response?

John Russell-2
Hi,

I'm struggling to understand whether the documentation covers this or  
not.

Say a submission is made by an xform to ultimately reach a url outside  
of orbeon

<xforms:submission  resource="http://localhost/db/someurl"  
method="POST" replace="instance"/>

Conditionally based on the content of the response from the external  
submission I would like to be able to

1) allow the form to replace="instance"

OR

2) send a url redirect to the browser

Is such condition processing and possible re-direct something that  
should somehow be coded into the XForm or with PFC/XPL?

Thank you,
John Russell.


--
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: redirect based on submission response?

Alessandro Vernet
Administrator
John,

John Russell-2 wrote
I'm struggling to understand whether the documentation covers this or  
not.

Say a submission is made by an xform to ultimately reach a url outside  
of orbeon

<xforms:submission  resource="http://localhost/db/someurl" 
method="POST" replace="instance"/>

Conditionally based on the content of the response from the external  
submission I would like to be able to

1) allow the form to replace="instance"

OR

2) send a url redirect to the browser

Is such condition processing and possible re-direct something that  
should somehow be coded into the XForm or with PFC/XPL?
Using XForms. You will run the <xforms:submission> you quoted above, and on xforms-submit-done check your condition. If you are in the first case, there is nothing more you need to do. If in the second, you do an <xforms:load> going to the URL you'd like the user to be redirected to.

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: re direct based on submission response?

John Russell-2
Thank you for your help.
Greatly appreciated.
John

On Jun 26, 2009, at 1:14 AM, Alessandro  Vernet <[hidden email]>  
wrote:

>
> John,
>
>
> John Russell-2 wrote:
>>
>> I'm struggling to understand whether the documentation covers this or
>> not.
>>
>> Say a submission is made by an xform to ultimately reach a url  
>> outside
>> of orbeon
>>
>> <xforms:submission  resource="http://localhost/db/someurl"
>> method="POST" replace="instance"/>
>>
>> Conditionally based on the content of the response from the external
>> submission I would like to be able to
>>
>> 1) allow the form to replace="instance"
>>
>> OR
>>
>> 2) send a url redirect to the browser
>>
>> Is such condition processing and possible re-direct something that
>> should somehow be coded into the XForm or with PFC/XPL?
>>
>
> Using XForms. You will run the <xforms:submission> you quoted above,  
> and on
> xforms-submit-done check your condition. If you are in the first  
> case, there
> is nothing more you need to do. If in the second, you do an  
> <xforms:load>
> going to the URL you'd like the user to be redirected to.
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
> --
> View this message in context: http://www.nabble.com/redirect-based-on-submission-response--tp24211487p24216582.html
> Sent from the ObjectWeb 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