Lux Smith
Posts: 0
Joined: Fri Jan 10, 2014 4:52 am

Unable to set a default date in date picker

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Unable to set a default date in date picker

Hi,

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

Lux Smith
Posts: 0
Joined: Fri Jan 10, 2014 4:52 am

Unable to set a default date in date picker

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

Return to “Issues”