カスタム項目を必須にする方法は複数あります。使用可能な各オプションについて説明します。
これが最も拘束性のある要件です。レコードの保存方法 (インテグレーション、API、一括アップロード、ユーザーインターフェース経由など) に関係なく、常に項目の入力を要求します。詳細は、次の説明を参照してください。
項目入力の必須化によるデータ品質の確保
カスタム項目の属性
Salesforce Classic の場合
Lightning Experience の場合
このオプションでは、この要件を設定した特定のページレイアウトがアクセスされた場合にのみ、項目を必須にします。したがって、表面的には特定のページレイアウトを使用する一部のユーザーにはこの項目を必須にし、他のユーザーは対象外とすることができます。「高度なページレイアウトエディターを使用したページレイアウトのカスタマイズ」を参照してください。
注意: この要件は、ユーザーインターフェースでレコードが編集された場合にのみ適用されます。API を介してレコードが更新される場合は、項目要件は適用されません。
Salesforce Classic の場合
Lightning Experience の場合
カスタム項目を必須にする最も単純な入力規則は次のようになります。
ISBLANK(Enter_Custom_Field_API_Name_Here__c)
または、項目のデータ型が Number または Currency の場合、次の構文を使用します。
ISNULL(Enter_Custom_Field_API_Name_Here__c)
ビジネスニーズに合わせて条件ステートメントを含むより複雑な入力規則を作成することができます。「入力規則の定義」を確認してください。
注意:これは項目レベル設定と同じように、レコードが作成または更新された場所に関係なく常に適用されます。この影響については、「入力規則の考慮事項」を参照してください。
Salesforce Classic の場合
カスタムオブジェクトの場合
Lightning Experience の場合
関連情報:
カスタム項目の作成
動的フォームを使用して、新規モーダルと編集モーダルの必須項目と Lightning レコードページの必須項目を作成できます。 「動的フォームの必須項目と参照のみの項目」をご確認ください。
注意: Lightning アプリケーションビルダーのプロパティパネルで Lightning ページの項目を [必須] または [読み取り専用] に設定すると、動作は項目のすべてのインスタンスではなく、そのページの項目のみに適用されます。
Lightning Experience の場合
000384974

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.