cancel
Showing results for 
Search instead for 
Did you mean: 

FDK: multiple value form field: how to?

cshryock
Champ in-the-making
Champ in-the-making
Hello,

I have a custom data model that has a few fields similar to this:

<property name="wdoc:subjects">
    <title>Subjects</title>
    <type>d:text</type>
    <multiple>true</multiple>
</property>

In my fdk-config-custom.xml file I have:
<field id="wdoc:subjects">
    <control template="/org/alfresco/components/form/controls/textarea.ftl" />
</field>

The data model is working well. I can't find a control template (http://wiki.alfresco.com/wiki/Forms#Configuring_Controls) that will render a multiple value form element. (Am I even looking for the right thing?)

Or am I missing something all together?

Thanks in advance.
Chad.
3 REPLIES 3

wabson
Star Contributor
Star Contributor
Hi Chad,

The Forms service does not yet support multi-valued properties, but you can specify multiple values in a text field by separating them with commas.

It is planned to support multi-valued properties more fully in the UI at some point, but right now there is no firm date for this I'm afraid.

There is an existing enhancement issue open at https://issues.alfresco.com/jira/browse/ALF-3144, which you may wish to watch, or add your feedback to.

This related issue also has some comments which may be relevant - https://issues.alfresco.com/jira/browse/ALF-5299

Cheers,
Will.

cshryock
Champ in-the-making
Champ in-the-making
Thanks Will. I'll keep my eyes out for the new feature in the future!

boneill
Star Contributor
Star Contributor
Hi Will,

Do you know if there has been any progress at alfresco in supporting multivalue fields, specifically texdtfield in forms.  The jiras you mentioned do not appear to have been worked on for some time and the forms roadmap no longer mentions it.

Regards