The answer lies in using the OR statement with ISPICKVAL. For each picklist value I want to check for I need to seperate with an OR. and (isblank (Custom_Field_ c),OR ((ISPICKVAL (FieldA _c, "Value1")), (ISPICKVAL (FieldA_ c, "Value2")), (ISPICKVAL (FieldA _c,"Value3"))))
Full Answer
How to create custom formula in Salesforce?
creating Formula field in Salesforce ? Go to Setup => Build => Create => Object => Select object => Custom Fields & Relationships => Click new => Formula. Now we are creating Formula field for student object to calculate average of three subjects F = ( S1+ S2 + S3) /3. Go to detail view of the object.
How to set up Validation rule in Salesforce?
How to Set up Validation Rule in Salesforce
- Video Demonstration. This video demonstrates putting in validation within a custom module called Purchase Order. ...
- More Examples of Validations. Below are certain validations which make sense for companies in certain cases. ...
- Conclusion. Validation rule is a great way to implement business checks without putting in a single line of code.
Are two blank fields considered equal in a Salesforce formula?
Treat blank fields as zeroes in field update formulas. Here's my use case: I have a workflow that automatically names a custom object record, based in part on the quantities that are not typed into various number fields on the object record.
What is a multi select picklist in Salesforce?
- The maximum number of characters you can have in a picklist depends on the type of picklist.
- The combined size of the selected picklist values must be less than 240 characters when selecting picklist values for a list view filter.
- For standard picklists, each value can have up to 255 characters without line breaks and returns.
What is a picklist field?
A picklist field lets you choose a value from a pre-populated list. While you can’t write a formula that returns a picklist as a result, you likely have to reference picklists in your formula fields. Say you need a validation rule that requires a user to fill out an explanation if they select "Other" as an Account’s Type.
Can you use TEXT in a picklist?
This formula, for example, displays a case’s Status as a sentence. You cannot use TEXT () on multi-select picklists. Multi-select picklists are not recommended in formula fields.
Does the equals operator work in picklist?
The equals operator (=), however, does not support picklist fields, and this formula causes an error. Instead, use ISPICKVAL () to check a picklist field’s value, or use TEXT () to convert a picklist value to Text before using the equals operator.
Avnish Yadav
A picklist value often determines which other fields on a record are required. ISPICKVAL () and CASE () are used for creating validation rules that check whether a certain picklist value is selected. For example, say you want users to enter a reason when they change a case’s Status picklist value to Escalated.
William
A picklist field lets you choose a value from a pre-populated list. While you can’t write a formula that returns a picklist as a result, you likely have to reference picklists in your formula fields.