Display the list of required input

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

Display the list of required input

ricetrac
Hello,
 
In my form, when the user submit it, I would like to display the list of required input that are empty.
I use the xforms-submit-error event in order to display a message, but can I get the list of  invalid  input ?
 
ex :

<xforms:submission id="Valider" action="./page5" method="post">

    <xforms:action ev:event="xforms-submit-error">

        <xforms:setvalue ref="/form/erreur">Des champs obligatoires ne sont pas remplis !</xforms:setvalue>

      </xforms:action>

</xforms:submission> 

thank you.

Julien.

 


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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: Display the list of required input

fl.schmitt(ops-users)
hi Julien,

> In my form, when the user submit it, I would like to display the list of
> required input that are empty.
> I use the xforms-submit-error event in order to display a message, but
> can I get the list of  invalid  input ?

Yes - take a look at the "error-summary" sandbox example:

http://www.orbeon.com/ops/xforms-sandbox/sample/error-summary

This shows a table that lists the fields causing errors and a short
description. Instead of showing the table in the xforms page, you could
put it into a xxforms:dialog that's shown on a xforms-submit-error
event. This way, you've got a message that's much better to configure
than the standard xforms:message.

HTH
florian



--
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: Re: Display the list of required input

ricetrac
Hello florian

Thank you for your response, but i already do that.  
But this solution doesn't display the input only required with no "constraint" in the <xforms:bind> and without "alert".

I would to list , on the form submit, all name's input required but empty.

It is possible ?

Thank you.



-----Message d'origine-----
De : Florian Schmitt [mailto:[hidden email]]
Envoyé : vendredi 16 mai 2008 14:56
À : [hidden email]
Objet : [ops-users] Re: Display the list of required input

hi Julien,

> In my form, when the user submit it, I would like to display the list
> of required input that are empty.
> I use the xforms-submit-error event in order to display a message, but
> can I get the list of  invalid  input ?

Yes - take a look at the "error-summary" sandbox example:

http://www.orbeon.com/ops/xforms-sandbox/sample/error-summary

This shows a table that lists the fields causing errors and a short description. Instead of showing the table in the xforms page, you could put it into a xxforms:dialog that's shown on a xforms-submit-error event. This way, you've got a message that's much better to configure than the standard xforms:message.

HTH
florian


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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: RE: Re: Display the list of required input

fl.schmitt(ops-users)
hi Julien,

> Thank you for your response, but i already do that. But this solution
> doesn't display the input only required with no "constraint" in the
> <xforms:bind> and without "alert".

i'm sorry, thats right, i assumed that the error summary would list
those elements, too. Because it seems that (actually - Eric wrote that
this may change) no specific event is fired when a required element is
empty, this component has to be replaced by a "manual" solution. This
means you could take the error-summary example, but it has to be
amplified by an additional check (using Javascript?). This check could
test for content in the required fields and issue xforms:insert /
xforms:setvalue actions to update the error instance.

HTH
florian




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