Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#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)

test_DialogDateTextBox.html (16.6 KB) - added by guest 12 years ago.
Click the first dialog button, fill in data, click OK.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by guest

Attachment: test_DialogDateTextBox.html added

Click the first dialog button, fill in data, click OK.

comment:1 Changed 12 years ago by bill

Milestone: 1.0
Owner: set to Douglas Hays

comment:2 Changed 12 years ago by guest

FYI, I'm using IE6

comment:3 Changed 12 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

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 12 years ago by bill

BTW see the Form.html test for an example of how to print out a date from dojo.json.

comment:5 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.