我正在嘗試使用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)來測試這一點,但字段保持可選狀態,在文本字段周圍沒有紅色邊框。
有人可以建議還需要什麼嗎?