You need to sign in to do that
Don't have an account?
Jeff Quirin
Validation Rule on Lookup, Picklist, and Text Field
Trying to write a Validation Rule for a Custom Field on a Custom Object to handle this scenario --- If a Lookup Field is not populated, then a Picklist field and a Text field are required to be populated --- but not prevent this scenario --- If the Lookup Field is populated, then the Picklist may be updated (but is not required), and the Text Field should not be populated.
Tried coming at it a couple different angels and can't get it right. Any thoughts?
Tried coming at it a couple different angels and can't get it right. Any thoughts?
OR(
AND( ISBLANK(lookup__c), ISBLANK( TEXT( vrPicklist__c ) ), ISBLANK( vrText__c )
),
AND( NOT(ISBLANK(lookup__c)) ,NOT(ISBLANK( vrText__c )) )
)
Hope this helps
All Answers
Please try with below formula:
OR(
AND(
isBlank(lookup__c),
ISBLANK(TextField),
ISBLANK(picklist)
),
AND(NOT(isBlank(Lookup))),
NOT(ISBLANK(textField))
)
Please try above formula in validation rule, and let me know if need more help on this.
Thanks,
Gaurav
Skype: gaurav62990
OR(
AND( ISBLANK(lookup__c), ISBLANK( TEXT( vrPicklist__c ) ), ISBLANK( vrText__c )
),
AND( NOT(ISBLANK(lookup__c)) ,NOT(ISBLANK( vrText__c )) )
)
Hope this helps
Try this updated formula:
OR(
AND(
isBlank(lookup__c),
ISBLANK(TextField),
ISBLANK(TEXT(picklist)))
),
AND(NOT(isBlank(Lookup))),
NOT(ISBLANK(textField))
)
Thanks,
Gaurav