Sometimes Alfresco developers need to define constraint list properties in Alfresco with a large number of values. For this type of metadata fields, the form layout is quite useless, as we need to search for a particular value in a long list of values (i.e. <50).
To make this easier, we have used the YUI autocomplete widget to create a new form control (autocomplete.ftl) for this type of properties.
Based on the selectone.ftl control, we have added this code to the template:
Then we just need to specify in share-config-custom.xml which properties are using this form control: