• Moni7
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Hello everybody,

 

 

I could write validation rule to prevent half entry of address...But it is not accepting when it is completely blank.

 

 

The validation rule I have written is 

 

OR(
OR(
Billing_Street__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_City__c<>null,
ISBLANK( Billing_Street__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_State__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_Street__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_Country__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Street__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_Zip_Code__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Street__c )))

 

Can you please tell me what is the mistake?? By the way I am new to sfdc.

 

 

Thanks.

  • June 27, 2013
  • Like
  • 0

Hello everybody,

 

 

I could write validation rule to prevent half entry of address...But it is not accepting when it is completely blank.

 

 

The validation rule I have written is 

 

OR(
OR(
Billing_Street__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_City__c<>null,
ISBLANK( Billing_Street__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_State__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_Street__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_Country__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Street__c ),
ISBLANK(Billing_Zip_Code__c )),

OR(
Billing_Zip_Code__c<>null,
ISBLANK( Billing_City__c ),
ISBLANK( Billing_State__c ),
ISBLANK( Billing_Country__c ),
ISBLANK(Billing_Street__c )))

 

Can you please tell me what is the mistake?? By the way I am new to sfdc.

 

 

Thanks.

  • June 27, 2013
  • Like
  • 0