我正在尝试使用guidetextbox(文本框)作为基础来创建自定义表单字段。把我的定制逻辑之前,我创建了一个文件夹的分量和内我把.content.xml如下:创建具有必填字段的自定义aem表单字段
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
allowedParents="[*/parsys, */*layout]"
componentGroup="Adaptive Form"
jcr:description="AEM Form Custom input field"
jcr:primaryType="cq:Component"
jcr:title="AEM Form Custom input field"
sling:resourceSuperType="/libs/fd/af/components/guidetextbox">
<cq:template
jcr:primaryType="nt:unstructured"
jcr:title="Custom input"
guideNodeClass="guideCustomInput" />
</jcr:root>
我试图通过设置字段作为强制性的(从dialog.xml)来测试这一点,但字段保持可选状态,在文本字段周围没有红色边框。
有人可以建议还需要什么吗?