Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

How to prohibit free text entry for the activity subject in Salesforce

게시 일자: Jun 25, 2026
상세 설명

By default, Salesforce allows users to type any free-text value into the activity Subject field. You can restrict this behavior using an Activity Entry Rule, which forces users to select only from the approved Subject picklist values. This article covers the steps to configure that rule in both Salesforce Classic and Lightning Experience.

솔루션

Follow these steps to create an Activity Entry Rule that restricts the activity Subject field to approved picklist values only. If a user enters a value that is not in the allowed list, Salesforce displays the error message you configure.

Salesforce Classic

  1. Click Settings | Build | Customize | Activity | Activity Entry Rules.
  2. Click the New button.
  3. Enter a rule name in the Rule Name field, then enter the following formula in the Error Qualifications box.

This formula restricts the Subject field to only the allowed picklist values listed. If a user enters a value that does not match one of the approved subjects, Salesforce triggers the entry rule and displays your configured error message.

NOT( OR( Subject == "Call", Subject == "Email", Subject == "Other"))
  • Note: "Subject" is the Subject field API name. Do not change it.
  • Note: For "Call," "Email," and "Other," enter the exact selection list value names currently used in your org.
  1. In the Error Message field, enter the message to display to the user when the rule is triggered.
  2. In Error Display Location, select where the error message should appear on the screen.
  3. Click Save.

Lightning Experience

  1. Click the gear icon | Settings | Object Manager | Activity | Entry Rules.
  2. Click the New button.
  3. Enter a rule name in the Rule Name field, then enter the following formula in the Error Qualifications box.

This formula restricts the Subject field to only the allowed picklist values listed. If a user enters a value that does not match one of the approved subjects, Salesforce triggers the entry rule and displays your configured error message.

NOT( OR( Subject == "Call", Subject == "Email", Subject == "Other"))
  • Note: "Subject" is the Subject field API name. Do not change it.
  • Note: For "Call," "Email," and "Other," enter the exact selection list value names currently used in your org.
  1. In the Error Message field, enter the message to display to the user when the rule is triggered.
  2. In Error Display Location, select where the error message should appear on the screen.
  3. Click Save.
추가 자원

Validation Rules

Knowledge 기사 번호

000387217

 
로드 중
Salesforce Help | Article