显示多个字段的错误消息 

使用附加的包同时显示所有字段的错误消息。 要显示单个错误消息,请使用默认配置文件。

自定义错误消息的外观。 

  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.