title: Creating custom aem form field with mandatory field
body: <p>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: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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"&gt;
  
  &lt;cq:template
      jcr:primaryType="nt:unstructured"
      jcr:title="Custom input"
      guideNodeClass="guideCustomInput" /&gt;
  &lt;/jcr:root&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>Can someone advise what else is required ?</p>