You need to sign in to do that
Don't have an account?
Rung41
Checkbox validation help
I am having trouble with a valdiation formula that checks two sets of criteria.
Criteria 1 - Field A = Yes AND Field B's number field is greater than 0.
Criteria 2 - Field A = Yes AND Field B's number field is greater than 0 AND Field C = Yes AND Field D not equal to BLANK
The first and second criteria reference the same elements but should be independent of each other. My formula "seems" to workfor Criteria 2 but not 1.
AND( NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0, OR( AND( NOT(ISPICKVAL(Virtual_Tour__c, 'No')), NOT(ISBLANK(Model_Promo_Virtual_Tour__c)), NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0) ))
Any help is greatly appreciated
Criteria 1 - Field A = Yes AND Field B's number field is greater than 0.
Criteria 2 - Field A = Yes AND Field B's number field is greater than 0 AND Field C = Yes AND Field D not equal to BLANK
The first and second criteria reference the same elements but should be independent of each other. My formula "seems" to workfor Criteria 2 but not 1.
AND( NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0, OR( AND( NOT(ISPICKVAL(Virtual_Tour__c, 'No')), NOT(ISBLANK(Model_Promo_Virtual_Tour__c)), NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0) ))
Any help is greatly appreciated
All Answers
Please try the below Formula:
OR(
AND(NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')),
Attachment_Added__c>0),
AND( NOT(ISPICKVAL(Virtual_Tour__c, 'No')),
NOT(ISBLANK(Model_Promo_Virtual_Tour__c)),
NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')),
Attachment_Added__c>0) )
Can you please Let me know if it helps or not!!!
If it helps don't forget to mark this as a best answer!!!
Thanks,
Maharajan.C
In the formula I do not see the use of 'OR' which you have used for 2nd criteria I guess. If you want validation to fire for either Criteria 1 OR Criteria 2 then it should be
OR(AND( NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0), AND( NOT(ISPICKVAL(Virtual_Tour__c, 'No')), NOT(ISBLANK(Model_Promo_Virtual_Tour__c)), NOT(ISPICKVAL(Furniture_Delivered_Model_Setup__c, 'No')), Attachment_Added__c>0))
So according to your imagined formula
(True AND True) Or (True AND False AND False And False)
= True OR False
= True, so the validation will be fired