Description
Compares two arguments of text and returns TRUE if the first argument contains the second argument. If not, returns FALSE.
The following example checks the content of a custom text field named Product_Type and returns “Parts” for any product with the word “part” in it. Otherwise, it returns “Service.”
{!IF(contains(opportunity.Product_Type__c, "part"), "Parts", "Service")}
This function is case sensitive so be sure your compare_text value has the correct capitalization.
Use
CONTAINS(text, compare_text) and replace text with the text that contains the value of compare_text.
Enroll in our Salesforce training to become as an Expert in Salesforce!