10-26-2012 04:23 AM
10-26-2012 06:48 AM
<field id="my:field">
<control template="/org/alfresco/components/form/controls/textfield.ftl">
<control-param name="maxLength">5</control-param>
<control-param name="size">5</control-param>
</control>
</field>
10-26-2012 07:15 AM
10-26-2012 08:18 AM
<constraints>
<constraint name="my:customContraint" type="REGEX">
<parameter name="expression"><value>Here goes your regular expression that allows only numbers</value></parameter>
<parameter name="requiresMatch"><value>true</value></parameter>
</constraint>
</constraints>
<property name="my:field">
<title>My Field</title>
<type>d:text</type>
<constraints>
<constraint ref="my:customContraint" />
</constraints>
</property>
10-26-2012 08:33 AM
<constraint id="my:lengthCont" type="LENGTH">
<parameter name="minLength"><value>0</value></parameter>
<parameter name="maxLength"><value>5</value></parameter>
</constraint>
10-29-2012 01:55 PM
10-29-2012 03:16 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.