There are situations in which you may want to only show the contents of a Salesforce field displayed in a Directories app results or record view if another condition exists within the Salesforce data. For example, if you have created a member directory, maybe you only want to show personal contact information if the Contact has affirmed that they allow this information to be shared.
The easiest way to do this would be to create two additional fields in Salesforce:
- checkbox field - allows for the confirmation of the display of a particular field
- formula field - an if/then statement that says if the checkbox field is checked, then display the contents of the field in question, and if not, show no value
Happy conditional field creation!