複数のフィールドのエラーメッセージを表示 

すべてのフィールドのエラーメッセージを同時に表示するには、添付されているパッケージを使用します。 エラーメッセージを単独で表示するには、デフォルトのプロファイルを使用します。

エラーメッセージの表示方法のカスタマイズ 

  1. etc\clientlibs\mf-custom-error-manager\CustomErrorManager\css フォルダーに移動します。

  2. sample.css ファイルを開いて編集します。 CSS ファイルには、#customError と #customWarning の 2 つの ID が含まれています。 これらの ID を使用して、色やフォントサイズなどの様々なプロパティを変更できます。

    次のコードを使用して、エラーメッセージや警告メッセージのフォントサイズと色を変更します。

    #customError {
    color: #0000FF; // it changes the color of Error Message
    display:none;
    position:absolute;
    opacity:0.85;
    font-size: 24px;  // it changes the font size of Error Message
    z-index:5;
    }
    
    #customWarning {
    color: #00FF00;  // it changes the color of Warning Message
    display:none;
    position:absolute;
    opacity:0.85;
    font-size: 18px;   // it changes the font size of Warning Message
    z-index:5;
    }
    
    Save the changes.
    
  3. ファイルを保存して閉じます。

  4. CustomErrorManager-1.0-SNAPSHOT フォルダーに移動し、jcr_root および META-INF フォルダーのアーカイブを作成します。 アーカイブの名前を CustomErrorManager-1.0-SNAPSHOT.zip に変更します。

  5. パッケージマネージャーを使用し、パッケージをアップロードしてインストールします。

新しいプロファイルでフォームをレンダリングします。 

出荷時の設定では、HTML5 フォームはデフォルトのプロファイル https://<server>/content/xfaforms/profiles/default.html?contentRoot=<xdp location>&template=<name of the xdp> を使用します。

カスタムエラーメッセージを含むフォームを表示するには、https://<server>/content/xfaforms/profiles/error.html?contentRoot=<xdp location>&template=<name of the xdp> のエラープロファイルを含むフォームをレンダリングします。

メモ
エラープロファイルは、添付されているパッケージによりインストールされます。

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.