#4268 closed defect (invalid)
DateTextBox in Dialog has no value
Reported by: | guest | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Dijit - Form | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Can't seem to get the value of a DateTextBox? in a Dialog box.
To reproduce... 1) In test_Dialog.html, add the following to the first dialog in the file... 2) Open in browser and click the button to display the dialog. 3) Fill in fields with data. 4) Click OK. It will display a message showing the field values. The date field will always be null or empty string no matter what you put in.
<tr> <td><label for="date">Date: </label></td> <td> <input id="datefield" type="text" name="date1" class="medium" value="2005-12-30" dojoType="dijit.form.DateTextBox" constraints="{min:'2004-01-01',max:'2006-12-31'}" required="true" promptMessage="mm/dd/yyyy" invalidMessage="Invalid date. Use mm/dd/yyyy format." /> </td> </tr>
Attachments (1)
Change History (6)
Changed 14 years ago by
Attachment: | test_DialogDateTextBox.html added |
---|
comment:1 Changed 14 years ago by
Milestone: | → 1.0 |
---|---|
Owner: | set to Douglas Hays |
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
The value is there, but the test file calls dojo.json that skips anything that isn't a number or a string. The date is of type Date.
comment:4 Changed 14 years ago by
BTW see the Form.html test for an example of how to print out a date from dojo.json.
comment:5 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
Click the first dialog button, fill in data, click OK.