By Octavio Henao on Thursday, 17 March 2016
Posted in General Issues
Replies 5
Likes 0
Views 467
Votes 0
Hi guys,

I tried to edit the calendar that appears in the registration form so that users can more easily select your birthday . The idea is to initially show the year , then the month and finally the day . As I read enough with edit the file ../media/foundry/4.0/scripts/ui/datepicker.js in line 71

change...
showMonthAfterYear: false, // True if the year select precedes month, false for month then year

for
showMonthAfterYear: true, // True if the year select precedes month, false for month then year


but I can not see the change. any idea how to do it ?

Thank you very much !
Hi Octavio,

Since easysocial date are using datetimepicker plugin, the file that you need to change is actually from /media/foundry/4.0/scripts/datetimepicker.js where you need to add an option as below,
viewMode: 'years',


Refer my screenshot here, http://screencast.com/t/mlH5LAtf2qm6 .

Hope these help.
·
Friday, 18 March 2016 16:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

If you are running on production mode, these scripts are not loaded as we have already pre-compiled all scripts into a single javascript file. If you want to make such changes, you should set the environment to development first under Settings > General.

However, I reckon that you should switch to just a simple dropdown for the birthday field instead of displaying this if you think that this is a little complex for your users
·
Thursday, 17 March 2016 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark , thanks for your attention ...

Turning to the development environment must modify the file ../media/foundry/4.0/scripts/ui/datepicker.js or another located on another route ? I ask because changing environment file has the parameter assigned correctly.

Thank you very much !
·
Friday, 18 March 2016 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
It is just what I needed ... thank you very much !
·
Friday, 18 March 2016 23:45
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Octavio, glad that your issues are resolved now

By the way, please remember to assign your domain to your license to obtain for support in the future. You can do so by accessing your license area at http://stackideas.com/dashboard
·
Friday, 18 March 2016 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post