I have created a list for scheduling meetings with an infopath form attached to fill out and submit, and the items submitted are then overlaid on a sharepoint calendar app. It is only overlaid because my manager wanted the employees to be able to click the calendar directly and add right to that date, but wants other functionality available in the infopath form.
Inspecting the Start time that was autofilled, it gave this information that, even though the value displayed shows the date I clicked on the calendar, the value of the variable is todays date.
<input name="ctl00$ctl40$g_a7c0a065_f468_4e02_9827_c9816e2db457$ctl00$ctl05$ctl02$ctl00$ctl00$ctl04$ctl00$ctl00$DateTimeField$DateTimeFieldDate" type="text" value="8/4/2016" maxlength="45" id="ctl00_ctl40_g_a7c0a065_f468_4e02_9827_c9816e2db457_ctl00_ctl05_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDate" title="Start Time" class="ms-input" autopostback="0" onvaluesetfrompicker="SP.UI.ApplicationPages.DateTimeFields.ensureInstance().onChange();">
Is there some other ID I should be using to set the value in the infopath form? Or some other code I should use to set the value? Any help or advice would be much appreciated!