Monday 27 June 2016

State Validation Rule

The US State contains 2 Letters. 

1. Create a Text field and the set values as "2"
2. To write a below validation rule  

OR( ISNUMBER( State__c ), OR(CONTAINS(State__c , "!"),CONTAINS(State__c , "@"),CONTAINS(State__c , "#"),CONTAINS(State__c , "$"),CONTAINS(State__c , "$"),CONTAINS(State__c , "%"),CONTAINS(State__c , "^"),CONTAINS(State__c , "&"),CONTAINS(State__c , "*")))

No comments:

Post a Comment

Batch Apex

1. What are transaction limits in apex? Total number of SOQL queries issued1 - 100 Total number of records retrieved by SOQL queries - 50...