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.
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.
Hi Rahul,
ReplyDeleteIt will be nice if you let me know any tutorial videos or book for sales force development
Hey Saurabh,
ReplyDeleteThere 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.