I've been trying to figure this out and cannot get it to work. I've tried the following combinations and nothing I do gets it to trigger.
We have a lookup field that looks up to the Sales Order object, and relates it back to a specific quote. The purpose of the validation rule is that if the fields denoted below are blank, a Sales Order CANNOT be populated/related.
IF(ISCHANGED(PBSI__Sales_Order__c),
AND(
ISBLANK(Panels__c),
ISBLANK(Contract_System_Size_Watts__c),
ISBLANK(Usage_Offset__c)
),
false)
Number 2 attempt:
IF(!ISBLANK(PBSI__Sales_Order__c),
AND(
ISBLANK(Panels__c),
ISBLANK(Contract_System_Size_Watts__c),
ISBLANK(Usage_Offset__c)
),
false)
Number 3 attempt:
AND(
!ISBLANK(PBSI__Sales_Order__c),
ISBLANK(Panels__c),
ISBLANK(Contract_System_Size_Watts__c),
ISBLANK(Usage_Offset__c)
)
Attempt 4:
AND(
ISCHANGED(PBSI__Sales_Order__c),
ISBLANK(Panels__c),
ISBLANK(Contract_System_Size_Watts__c),
ISBLANK(Usage_Offset__c)
)
I'm certain it's logical in nature. I'm not sure I'm looking at validation rules properly in my head. If someone could show how it is supposed to look to work, and then break it down explaining why it works, I would appreciate it.
Thanks!
ISNULL
in forISBLANK
?