You need to sign in to do that
Don't have an account?
Manjunath reddy 25
validation rule not works properly
I have written a validation rule as below,
AND(
$Setup.Global_Config__c.Mute_Validation_Rule__c <> TRUE,
OR(
ISBLANK( Account__c ),
ISBLANK( Name__c ),
ISPICKVAL( Role__c , ''),
ISPICKVAL( Role_Scope__c , ''),
AND(
ISPICKVAL( Role__c , "Other"),
LEN(Role_Scope_Description__c) = 0
)
)
)
but when I click save butonn with empty fields , it is not throwing an error, If we select two or mor fileds it i throwing an error,can some one help me on this.
AND(
$Setup.Global_Config__c.Mute_Validation_Rule__c <> TRUE,
OR(
ISBLANK( Account__c ),
ISBLANK( Name__c ),
ISPICKVAL( Role__c , ''),
ISPICKVAL( Role_Scope__c , ''),
AND(
ISPICKVAL( Role__c , "Other"),
LEN(Role_Scope_Description__c) = 0
)
)
)
but when I click save butonn with empty fields , it is not throwing an error, If we select two or mor fileds it i throwing an error,can some one help me on this.
Check if this works :
AND(
$Setup.Global_Config__c.Mute_Validation_Rule__c <> TRUE,
OR(
ISBLANK( Account__c ),
ISBLANK( Name__c ),
ISPICKVAL( Role__c , ''"),
ISPICKVAL( Role_Scope__c , ''"),
OR(
ISPICKVAL( Role__c , "Other"),
LEN(Role_Scope_Description__c) = 0
)
)
)