Custom Range of Years for Standard Date Field in Salesforce

Custom “Range of Years” for “Standard Date Field” in Salesforce

Have you ever noticed that the standard date field shows year Range to only up to 7 years? What if we want that Range to be custom as per our functionality. For that you need to use the following script :

————————————————————————————————————————————

————————————————————————————————————————————-

**** In var startYear=2000; var endYear=2050; mention your year Range.

VISUALFORCE PAGE :

Cheers!!!

0 Comments

Leave a Reply

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?