How to add a maximum limit for tags in dialog field
<tags
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
fieldLabel="Tags"
fieldDescription="Let author choose a maximum of five tags"
multiple="{Boolean}true"
name="./tags"
required="{Boolean}true"/>
above is the configured dialog, is there any way to limit the author to add only 5 tags.
Thanks in advance.