W3C home > Mailing lists > Public > www-forms@w3.org > May 2010

making an xsd:date field optional

From: Jabba Laci <jabba.laci@gmail.com>
Date: Thu, 27 May 2010 20:32:36 -0400
Message-ID: <AANLkTimqOY6Zp6vpG1z10pwrQF738wHbQriGzIbOIh2i@mail.gmail.com>
To: xforms <www-forms@w3.org>
Hi,

I have a form with an input field which asks for a date (using
xsd:date). However, if it's left empty, the form cannot be sent. How
to make it optional? Here is what I have:

Model part:

<limiteValidite xsi:type="xsd:date" />

Body part:

<xforms:input ref="/Nouvelle/limiteValidite">
   <xforms:label>Date limite de la validite :&nbsp;</xforms:label>
   <xforms:message level="ephemeral" ev:event="DOMFocusIn">Saisissez
une date.</xforms:message>
</xforms:input>

Thanks,

Laszlo
Received on Friday, 28 May 2010 00:33:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:20 GMT