You need to sign in to do that
Don't have an account?
Jeremy Evans
Using ISCHANGED on a Validation Rules
I have an object with 5 page layouts and about 15 fields I want to lock. I want to apply a validation rule that prevents these fields from being edited if a checkbox is marked as true. I'm still learning how to write these so bare with me.. any help is appreciated
AND(ISCHANGED ("Amount__c"),(ISCHANGED ("Payee__c")),(ISCHANGED ("From_Finanncial_Account_Number__c")), (ISCHANGED ("Shares__c")), (ISCHANGED ("Security_Symbol__c")), (ISCHANGED ("Security_Name__c")),(ISCHANGED ("Broker_Dealer_Name__c")), (ISCHANGED ("DTC_Number__c))",(ISCHANGED ("From_Account_Number__c")), (ISCHANGED ("To_Account_Number__c")), (ISCHANGED ("To_Financial_Account__c")), (ISCHANGED ("Bank_Name__c","ABA_Number__c")), (ISCHANGED ("To_Account_Name__c")), (ISCHANGED ("From_Account_Number__c")), (ISCHANGED ("To_Financial_Account__c")),(RecordTypeId = "012d0000000P6ER"),(RecordTypeId = "012d0000000P6O"),(RecordTypeId = "012d0000000P6Fj"),(RecordTypeId ="012d0000000P6FZ"),(RecordTypeId = "012d0000000P6F"), AND ("Lead_Approval_Completed__c") = TRUE
AND(ISCHANGED ("Amount__c"),(ISCHANGED ("Payee__c")),(ISCHANGED ("From_Finanncial_Account_Number__c")), (ISCHANGED ("Shares__c")), (ISCHANGED ("Security_Symbol__c")), (ISCHANGED ("Security_Name__c")),(ISCHANGED ("Broker_Dealer_Name__c")), (ISCHANGED ("DTC_Number__c))",(ISCHANGED ("From_Account_Number__c")), (ISCHANGED ("To_Account_Number__c")), (ISCHANGED ("To_Financial_Account__c")), (ISCHANGED ("Bank_Name__c","ABA_Number__c")), (ISCHANGED ("To_Account_Name__c")), (ISCHANGED ("From_Account_Number__c")), (ISCHANGED ("To_Financial_Account__c")),(RecordTypeId = "012d0000000P6ER"),(RecordTypeId = "012d0000000P6O"),(RecordTypeId = "012d0000000P6Fj"),(RecordTypeId ="012d0000000P6FZ"),(RecordTypeId = "012d0000000P6F"), AND ("Lead_Approval_Completed__c") = TRUE
AND(OR(ISCHANGED ("Amount__c"),ISCHANGED ("Payee__c"),ISCHANGED ("From_Finanncial_Account_Number__c"), ISCHANGED ("Shares__c"), ISCHANGED ("Security_Symbol__c"), ISCHANGED ("Security_Name__c"),ISCHANGED ("Broker_Dealer_Name__c"), ISCHANGED ("DTC_Number__c)",ISCHANGED ("From_Account_Number__c"), ISCHANGED ("To_Account_Number__c"), ISCHANGED ("To_Financial_Account__c"), ISCHANGED ("Bank_Name__c","ABA_Number__c"), ISCHANGED ("To_Account_Name__c"), ISCHANGED ("From_Account_Number__c"), ISCHANGED ("To_Financial_Account__c")), OR(RecordTypeId = "012d0000000P6ER"),(RecordTypeId = "012d0000000P6O"),(RecordTypeId = "012d0000000P6Fj"),(RecordTypeId ="012d0000000P6FZ"),(RecordTypeId = "012d0000000P6F")), ("Lead_Approval_Completed__c"= TRUE))
and I'm getting :
Error: Incorrect argument type for function 'ISCHANGED()'.
Try this formula hope it works :-
Thanks
Anil.B
I think you are missing a parenthesis in you final code posted.
is it here:
NOT(ISCHANGED (To_Financial_Account__c)) need another ) ?
or is it here:
Lead_Approval_Completed__c=TRUE) need another ) ?
Are you sure you tested all scenarios? like changing one of the fields not on this list.
Thx
Here's your code, unless I copied it wrong, a parenthesis is missing.