Loading

Require a Text Field to be populated when the ‘Other’ option is selected in a picklist

Udgivelsesdato: Aug 21, 2026
Beskrivelse

Sometimes there are business requirements to collect additional information when there is a picklist option like Other. To allow for requiring the secondary field only when the Other option is selected, you can use a validation rule. In this example we are going to look at the account object however this can be done on any object including Lead, Contact, Opportunity, Custom Objects etc. 

Løsning

Creating a Validation Rule to Selectively Enforce the Field Requirement

This resolution explains how to require a text field (like "Other Type") to be filled in only when a specific picklist option (like "Other") is selected, using a validation rule.

[Completed validation rule enforcing the Other Type field when Type equals Other

This image shows the completed validation rule that was created based on the below instructions.

Step 1: Choose the Object

In Setup, navigate to the object that has the picklist you need to enforce this rule on. In this example, we're going to use Account.

Step 2: Confirm the Picklist Field

On Account, we have the standard Type picklist field. This picklist has a value option called Other.

Step 3: Create the Supporting Text Field

Create a text field called Other Type and set the Characters to 255.

Step 4: Save the Field

Save the new Other Type field.

Step 5: Create the Validation Rule

On Account, create a new Validation Rule.

Step 6: Name the Validation Rule

Give the Validation Rule a meaningful Rule Name and Description.

Step 7: Enter the Formula

Use the formula below:

AND(
ISPICKVAL(Type, 'Other'),
ISBLANK(Other_Type__c)
)

This formula triggers the validation error only when the Type field is set to "Other" and the Other Type text field is left blank.

Step 8: Add the Error Message and Save

Add an Error Message and then click Save.

Pro Tip: If you are using dynamic forms, you can hide the Other Type field on the page to only be visible when the Type field is selected as Other — this creates the best user experience.

 

Vidensartikelnummer

000580368

 
Indlæser
Salesforce Help | Article