Page 1 of 1

Unable to set a default date in date picker

Posted: Tue Feb 11, 2014 12:20 am
by Lux Smith

I reference the following solution but it does seem to be working when I try to
set a default date of a datepicker upon page load event.

https://getsatisfaction.com/apperyio/...

Here is my code:

Appery("in_datePicker").setProperty("defaultDateValue", $.datepicker.formatDate("MM/dd/yyyy", new Date()));

I get an error message:
Uncaught TypeError: Cannot call method 'formatDate' of undefined


Unable to set a default date in date picker

Posted: Tue Feb 11, 2014 12:27 am
by Illya Stepanov

Hi,

Are you sure you have placed a datepicker component on any screen?


Unable to set a default date in date picker

Posted: Sat Feb 15, 2014 3:52 pm
by Lux Smith

Thanks. Inadvertently I was using an Input component with type date.