Saturday, 16 November 2013

Salesforce Validation Rule:-

Problem:
There are One check box and two pickList fields  on the Custom Object Page. User want to make sure if checkBox fields is selected then both the Picklist value should not be null.

Solution:-

AND((US_Citizen__c==true),
((ISPICKVAL(City__c ,'')) || (ISPICKVAL(State__c ,''))))

Here in this Solution:
 US_Citizen__c = Custom Check box
and
City__c and State__c = Custom PickList Fields.

2 comments:

  1. Hi Rahul,
    It will be nice if you let me know any tutorial videos or book for sales force development

    ReplyDelete
  2. Hey Saurabh,

    There are many tutorials are available, you just need search on it google.

    Search with 'Visualforce workbook' and 'Apex workbook' on google..you will find the tutorials.

    Meanwhile I will be posting the links and other resources here on my blog, you can take help of those tutorials and links.

    ReplyDelete