I am using DateInputAnim (or DateInput) because I want one of those
cool popup calendars (yes, they're cool).
When I use the code below in my form, I get a text box, but when I
click on it, nothing happens. While this is functional, I would love
to see the calendar widget.
Below is from my forms.py and then the HTML it generates. Am I missing
something?
-----
birthdate = fields.DateField(
label="Birthdate of elder patient",
help_text="Month Day Year",
required=True,
widget=widgets.DateInputAnim(attrs={
'invalidMessage': 'The date is invalid!',
}))
---------
<input name="birthdate" invalidmessage="The date is invalid!"
required="true" promptmessage="Month Day Year" id="id_birthdate"
dojotype="dojox.form.DateTextBox" type="text">
I definitely have that.
I should say that the fields that are not working properly are ones
that appear after an Ajax submission:
1. Pick from a dojango ChoiceField (works just fine).
2. onChange, submit to Django via Ajax (works just fine).
3. When the response comes back, it puts new fields into the document.
In other words, one form spawns another (like a wizard). The new
fields appear to just be regular fields, although I specify for them
to be specific dojango fields.
Everything works fine when it's not part of an Ajax response.
I suspect THAT'S the problem. Any tips there?