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>

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>


Received on Friday, 28 May 2010 00:33:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:23 UTC