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
SF@SiemensSF@Siemens 

Can you set Field Dependencies for Date Fields?

Just wondering if you can have a date field be dependent on a picklist field? 
 
Thanks,
 
SFSiemens
TCAdminTCAdmin
SF@Siemens,

The date fields cannot be a truly dependent field of a picklist. What you will need to do is create a validation rule based on the picklist and if the date is set to null.
Code:
AND(
  NOT(ISPICKVAL(Picklist__c, "")),
  ISNULL(DateField__c)
)

 

SF@SiemensSF@Siemens

Chris,

I appreciate your code for my issue.  That did the trick.

Thanks again,