顯示多個欄位的錯誤訊息 

使用附加的套件同時顯示所有欄位的錯誤訊息。 若要顯示單一錯誤訊息,請使用預設設定檔。

自訂錯誤訊息的外觀。 

  1. 導覽至etc\clientlibs\mf-custom-error-manager\CustomErrorManager\css資料夾。

  2. 開啟sample.css檔案進行編輯。 css檔案包含2個ID:#customError、#customWarning。 您可以使用這些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.