Dojo DateTextBox within formatted InfoTemplate

06-10-2015 09:05 AM
New Contributor III

I am trying to create a dojo DateTextBox in the custom formatted Info Window that pops up when clicking features on my map.  Within my info template I have code that looks like this (only the relevent stuff is here):


     "<label for='myDateInput'>Date: </label>" +

     "<input id='myDateInput' type='text' data-dojo-type='dijit/form/DateTextBox' value='${DATE}' />"


Also have dijit/form/DateTextBox in my require statements.

Unfortunately the result is just a regular text input field with my date attribute in it, and not that drop down calendar.

The html works when I just put it directly on my html page to test, so I'm not sure why it doesn't like the dojo.


0 Kudos
2 Replies
Esri Esteemed Contributor

Hi Joseph,

Are you looking for the ability to update the date within the InfoTemplate?  The InfoTemplate is read-only, so you won't have this ability.  Take a look at the AttributeInspector class if you wish to change the date.

0 Kudos
New Contributor

Hi Joseph,?

I'm having the same problem when I try to create a dojo DateTextBox in a custom widget, Did you solved it ? How ?



0 Kudos