My form has a simple Datepicker on it, which paints and apparently operates correctly, but when I post the results with the submit button, although the rest of the fields go through correctly, the one with the datepicker doesn't.
For example, I have a part of my form like this:
....
and then some time later, at the end, I have
Notice how there's no entry for the datepicker field, which is named field17 - not even an empty field posted. Also notice that I've definitely set the name attribute on the input field.
I'm using the latest version of Kendo UI (just redownloaded it today to check). The datepicker also behaves like this, even if I don't open up the date widget and type the date in (in dd/MMM/yyyy format). What do you think the problem is?
For example, I have a part of my form like this:
<tr><td class=view><font color=red>Third Phone Type</td><td class=view><input type=hidden name="oldfield13" value="Not Given"><select id="i13" class=view name="field13"> <option value=""></option> <option selected value="Not Given">Not Given</option> <option value="Home">Home</option> <option value="Office">Office</option> <option value="Mobile">Mobile</option> <option value="Direct Dial">Direct Dial</option> <option value="Primary">Primary</option> </select> </td></tr> <tr><td class=view>Contact EMail Address</td><td class=view><input type=hidden name="oldfield14" value="xxxx23285@gmail.com"><input type=text class=view name=field14 value="arun23285@gmail.com"></td></tr> <tr><td class=view>Payslip EMail Address</td><td class=view><input type=hidden name="oldfield15" value=""><input type=text class=view name=field15 value=""></td></tr> <tr><td class=view><font color=red>Gender</td><td class=view><input type=hidden name="oldfield16" value="Female"><select id="i16" class=view name="field16"> <option value=""></option> <option value="Not Given">Not Given</option> <option value="Male">Male</option> <option selected value="Female">Female</option> </select> </td></tr> <tr><td class=view>Date of Birth</td><td class=view><input type=hidden name="oldfield17" value="1 July 1986 00:00:00"><input id="i17" type=text class=view name=field17 value=""></td></tr>
....
and then some time later, at the end, I have
<script> $(document).ready(function() { $("#i17").kendoDatePicker({format:"dd MMM yyyy"}) }); </script>I pick a date, when I close the datepicker window, the value has filled in on the text box, and then when I post, I have a debug routine that reads all the posted data, and displays it in a table. I get this (amongst other stuff)then some time later, at the end, I have
oldfield13 | Not Given |
field13 | Not Given |
oldfield14 | xxxx23285@gmail.com |
field14 | xxxx23285@gmail.com |
oldfield15 | |
field15 | |
oldfield16 | Female |
field16 | Female |
oldfield17 | 1 Jan 1900 00:00:00 |
oldfield18 | Indian |
field18 | Indian |
I'm using the latest version of Kendo UI (just redownloaded it today to check). The datepicker also behaves like this, even if I don't open up the date widget and type the date in (in dd/MMM/yyyy format). What do you think the problem is?