How do I bind a field to a date type without requiring it?

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

How do I bind a field to a date type without requiring it?

Jenny Walsh
Hi,

I am trying to create a field that uses the date picker control that is not a required field. Here's how I did that:

<xforms:bind nodeset="instance('my-instance')">
    <xforms:bind nodeset="dateRequested" type="xs:date" required="false()"/>
</xforms:bind>

However the field still seems to be required. If I leave it blank the form will not submit and I see this message in the log: xforms:submission: instance to submit does not satisfy valid and/or required model item properties. How do I do this correctly?

Thanks,
Jenny Walsh


--
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: How do I bind a field to a date type without requiring it?

Ryan Puddephatt-3
Xs:date is a required type use xforms:date instead

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: Jenny Walsh [mailto:[hidden email]]
Sent: 20 February 2009 18:06
To: [hidden email]
Subject: [ops-users] How do I bind a field to a date type without requiring it?

Hi,

I am trying to create a field that uses the date picker control that is not a required field. Here's how I did that:

<xforms:bind nodeset="instance('my-instance')">
    <xforms:bind nodeset="dateRequested" type="xs:date" required="false()"/> </xforms:bind>

However the field still seems to be required. If I leave it blank the form will not submit and I see this message in the log: xforms:submission: instance to submit does not satisfy valid and/or required model item properties. How do I do this correctly?

Thanks,
Jenny Walsh


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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
OW2 mailing lists service home page: http://www.ow2.org/wws