Show invalid elements

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

Show invalid elements

RdeBeijer
Hi,

We have a form that can be saved to PDF by the following submission tag

 <xforms:submission
                id = "print-pdf-submission"
                ref = "instance('form-instance')/formcontent"
                method = "post"
                action = "/e-formulieren/pdf">
                <xforms:setvalue ev:event = "xforms-submit" ref =
"instance('form-instance')/formstatus/submitted">yes</xforms:setvalue>
                <xforms:setvalue ev:event = "xforms-submit" ref =
"instance('form-instance')/formstatus/last-submit">pdf</xforms:setvalue>
                 <xforms:message ev:event = "xforms-submit-error"  
level = "modal">Error</xforms:message>
            </xforms:submission>

It throws an error when for example an mandatory/required field is not
filled in, which is correct, but is it also possible in a simple way to
show which field or binding has made it to fail?
So I can show it in the <xforms:message ev:event =
"xforms-submit-error"   level = "modal">Error</xforms:message> message??

regards Ramon




--
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: Show invalid elements

Alessandro Vernet
Administrator
Ramon,

On Mar 3, 2009, at 6:33 AM, Ramon de Beijer wrote:

> <xforms:submission
>               id = "print-pdf-submission"
>               ref = "instance('form-instance')/formcontent"
>               method = "post"
>               action = "/e-formulieren/pdf">
>               <xforms:setvalue ev:event = "xforms-submit" ref =  
> "instance('form-instance')/formstatus/submitted">yes</xforms:setvalue>
>               <xforms:setvalue ev:event = "xforms-submit" ref =  
> "instance('form-instance')/formstatus/last-submit">pdf</
> xforms:setvalue>
>                <xforms:message ev:event = "xforms-submit-error"    
> level = "modal">Error</xforms:message>
>           </xforms:submission>
>
> It throws an error when for example an mandatory/required field is  
> not filled in, which is correct, but is it also possible in a simple  
> way to show which field or binding has made it to fail?
> So I can show it in the <xforms:message ev:event = "xforms-submit-
> error"   level = "modal">Error</xforms:message> message??
I think it is just a typo: the event name should be xforms-submit-done  
instead of xforms-submit.

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



--
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