Posts

Showing posts from May 19, 2015

Make Salesforce calendar year drop-down to show earlier years

Image
Requirement: The birthdate field on the Contact object doesn’t show previous year and neither does it allow to switch back and forth the Years part easily. Solution: Below example will show the last 100 years. Go to Setup -> App Setup -> Customize -> User Interface. Here make sure the ‘Show Custom Sidebar Components on All Pages’ is checked. Go to Setup -> App Setup -> Home Page Layouts. Make sure all your Home Page Layouts have the Messages & Alerts component checked. Go to Setup -> App Setup -> Home Page Components. Here, click edit for Messages & Alerts. In the textarea, copy and paste the javascript code below and save (it can just go below your normal Messages & Alerts, won’t show up on the actual page). <script src="/js/dojo/0.4.1/dojo.js"></script> <script src="/soap/ajax/11.1/connection.js" type="text/javascript"></script> <script type="text/javascript"> dojo.requ