This feature only applies to guides that execute within Salesforce.
You can determine which guides display within the "Guides" area on a user's Salesforce page by entering criteria in the guide properties. Enter the criteria in the
Show Guide Only When
field on the Guide Properties
The criteria must be entered as a Boolean expression. You can use the functions and operators described in the Salesforce documentation. See the examples below.
list to select insert objects and fields into the expression.
This expression can be as complex as you need. For example, here is an expression that tells Guide Designer that it should only display a guide when an account's owner is one of three people:
CONTAINS($Account.Owner.Name, "John Smith")
|| CONTAINS($Account.Owner.Name, "Bob Smith")
|| CONTAINS($Account.Owner.Name, "Jim Smith")
Do not use Salesforce field syntax (enclosing field names in curly braces with the "!" prefix) when you enter field names. The expression is passed directly to Salesforce as an Apex expression. If you pass an invalid Apex expression, Salesforce returns an error message.
If the field is a list, you can use an equals sign to select one of the items from the list. For example:
Account.Type = 'Analyst'
To define multiple criteria, use "&&" (logical AND) and "||" (logical OR) in your expression. For example:
(Account.Type = 'Analyst' && Account.testfield__c= true) || (Account.Phone ='1234')
In this case, the expression means that:
The account type must be Analyst AND the testfield must be true, OR
The account phone number must be 1234.
In this case, the parentheses group the first two tests so they are evaluated as a single unit.
In the following example, the parentheses cause this expression to be evaluated differently:
(Account.Type = 'Analyst') && (Account.testfield__c= true || Account.Phone ='1234')
Here, the same criteria means that:
The account type must be Analyst AND
Either the testfield must be true OR the account phone must be 1234.