You need to sign in to do that
Don't have an account?
Can I select a specific picklist value, if date field is entered?
if a user enters a date value into a date field, can a validation field require a specific picklist value?
AND(
ISBLANK(Ending_Date__c),
OR(
ISPICKVAL( Status__c, 'Pink'),
ISPICKVAL( Status__c, 'Red')))
AND(
ISBLANK(Ending_Date__c),
OR(
ISPICKVAL( Status__c, 'Pink'),
ISPICKVAL( Status__c, 'Red')))
!ISBLANK(Ending_Date__c),
OR(
ISPICKVAL( Status__c, 'Pink'),
ISPICKVAL( Status__c, 'Red')))
This way, if Ending_Date__c is entered, then the picklist value CANNOT be Pink or Red.
AND(
!ISBLANK(Ending_Date__c),
OR(
!ISPICKVAL( Status__c, 'Pink'),
!ISPICKVAL( Status__c, 'Red')))
If you want to enforce the picklist to require a specific value when the date is populated, then you do it like this
Just put the specific value you want to be enforce in the formula above and that should work. If not elaborate more on whar exactly are you trying to achieve.
AND(
!ISBLANK(Ending_Date__c),
OR(
!ISPICKVAL( Status__c, 'Pink'),
!ISPICKVAL( Status__c, 'Red')))
AND(
NOT(ISBLANK(Ending_Date__c)),
AND(
NOT(ISPICKVAL( Status__c, 'Pink')),
NOT(ISPICKVAL( Status__c, 'Red'))))