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
salesforce86salesforce86 

validation to restrict pick list values for month wise

i have created a custom object called monthly promotions.I have a fields called promotion1, promotion2,promotion3,promotion4. And every month i have promo codes for example january has promocodes like 0111,0222,033,0444 and for feb 1111,2222,3333,4444 and so on for every month. But the promocodes should be visble only for that particular month.Example january codes should be shown in the  month of january only and in february january codes and future months codes shouldn't be shown.

 

Any suggestion is appriciated.

 

Thanks,

Kiran

Andy BoettcherAndy Boettcher

You can't do that via Validation Rules or Formulas.  You're looking at doing a Visualforce / APEX solution.

 

-Andy

salesforce86salesforce86

Im trying to do it by triggers. upto what extent it is possible.