Conditions for XForms:submission?

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

Conditions for XForms:submission?

Marcus-2
Its me, one more time,

Another question i have: How can i use conditions for any submissions?
I have to save some forms, but before i have to test some additional conditions on my exist-db and only if these are fullfilled, i could save my new form. Otherwise i have to output a custom error message.
How can i do such a thing?

My idea is first send the "testing-condition" and wait for the response. In case it is positiv, send the second submission. Is that the right way, or can i use somekind of if-clause inside a submission? Didn't found any example yet.

Thanks for your help,
Marcus



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Conditions for XForms:submission?

Erik Bruchez
Administrator
Marcus,

You can use the @if attribute on any action to execute that action
conditionally. See this section of XForms 1.1 for more details:

   http://www.w3.org/TR/xforms11/#action-conditional

-Erik

[hidden email] wrote:

> Its me, one more time,
>
> Another question i have: How can i use conditions for any submissions?
> I have to save some forms, but before i have to test some additional conditions on my exist-db and only if these are fullfilled, i could save my new form. Otherwise i have to output a custom error message.
> How can i do such a thing?
>
> My idea is first send the "testing-condition" and wait for the response. In case it is positiv, send the second submission. Is that the right way, or can i use somekind of if-clause inside a submission? Didn't found any example yet.
>
> Thanks for your help,
> Marcus
>
>

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws