function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
avimeiravimeir 

Adding birthdate field

Hi 

 

I am trying to add a birthday to a Client custom object, but the date selector goes only as back as 2011. How can I add all years from 1920 to current year?

 

Thanks

@anilbathula@@anilbathula@

Hi 

 

If u want to add date pickers from 1920

please check this link.

 

http://codebycody.com/2011/05/13/fix-for-salesforce-com-date-picker-year-limitation/

avimeiravimeir

Hi Anil,

 

Thanks for the link. I 'm almost there, now just missing the part of adding this custom HTML into a custom object tab. Any idea how I can add HTML to a custom object layout?

 

Thanks!

@anilbathula@@anilbathula@

Hi 

 

you dont need to add this to custom object tab.

just add it to the home page layout.

Thats it it will work for both standard and custom objects.

 

 

avimeiravimeir

I added an alert("hi"); to see when it runs, and it only does on Home tab. But the alert doesn't show on any othe tab, and the datepicker is the default one.