Assigning a date value using javascript

J

John Sivilla

I want to do something simple like

XDocument.DOM.selectSingleNode("//my:HiringDate").text = "2006-06-27";

and then have this date appear in the date picker field for which I assigned
this field. But the value never gets assigned.

How can I assign a date value to a field through javascript in InfoPath.

thanks,
John Sivilla
Developer IT
Montreal, Canada
Blog: http://spaces.msn.com/members/sivilian/
 
G

Greg Collins [InfoPath MVP]

What you are doing is the correct way to set the value of a date field.

If you are setting the field value to which the date picker control is bound, then it should display in the control. Are you sure you are selecting the correct field?
 
Top