I am trying to create a custom form field using guidetextbox (Text box) as base. Before putting my custom logic, I created a folder for the component and inside I put .content.xml as follow:
<?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>
I attempted to test this by setting the field as mandatory (from dialog.xml) but the field stays as optional, no red border around the text field.
Can someone advise what else is required ?