This is probably an obscure problem, but if it happens to you it is incredibly annoying. Hopefully the next person who struggles with this will search and find this answer.
Here’s the problem: you have a date template variable available for your modx templates. It is named “event_date”. You have enabled the “date formatter” widget so that user can click a little button to have a date chooser to popup in the manager. But, when you click the button for the date chooser nothing happens.
Here’s the solution: remove the underscore (“_”) in your template variable name. That’s it. Apparently the modx parser converts the underscore to an url safe entity and that messes up the javascript required to launch the popup.
Of course you might also want to be certain that popups are allowed by your browser for this domain!
Thanks for hint, I’ve struggled with same bug.
Excellent! I was wondering about this too, and luckily I found your page :) Now I have to find out how one make a date-field work…
Thanks, saved me a lot of frustration. Also same applies for hyphens (-).
Thank you, thank you, thank you – that was driving me nuts – used (-) hyphen but so glad I found this.
I don’t mean to preach, but I’ve found that making a habit of using camel case for all my variable names has helped with these obscure little issues, as well as with remembering later if I used an underscore, hyphen, or neither to separate words in a variable name. With camel case, first word is always lower-case, then each word after is upper-case. An example: thisIsCamelCase. It’s helped me – hopefully it will help others as well.
Superb advice, actually, although I have to admit I find camel case difficult to read. Still it does solve a lot of issues before they show up.
Thanks. This was killin my brain!
Took me half an hour to find this post; then it took me five seconds to solve the problem. Thanks for sharing, I was going nuts!
Thank you so much, I would have never figured this out!
thanks dude, it took me giving the variable 5 different names over an hour and finding this post before I could figure it out. Thanks again
Cheers man that had stumped me good n proper. Awesome post
Thanks a bunch. Just tripped over this nasty one today myself. I’d still be pulling my hair out if it weren’t for your post. Cheers!
I have another problem with the datepicker! It only goes back to 2000. I am trying to use it as a DOB field, so the date restriction makes it useless. Still trawling for a solution :)
Really? I guess I’ve never used it to pick dates before 2000, but there must a solution. I wish I knew it for you! Good luck!