cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox with multiple options

d_franz
Champ on-the-rise
Champ on-the-rise
I have created a Content Type with a Text field. Now I want to fill this text field with options selected on a checkbox field.

Is there a simple way to set multiple parameters for one field, such as for a "selectone" ( "<control-param name="options">1|{Regen},2|{Niesel-Regen},3|{Graupel},3|{Hagel},4|{Schnee}</control-param>")

Another great option would be to read out a text file.
3 REPLIES 3

abarisone
Star Contributor
Star Contributor
Well, in this case you'd better declare your property or aspect as multivalue in the model.
Here is specified how to set this kind of properties https://forums.alfresco.com/en/viewtopic.php?f=5&t=8758

Regards,
Andrea

d_franz
Champ on-the-rise
Champ on-the-rise
Well! I already defined this property in as a multiple list in a aspect:
                <property name="nci:situationInfoList">
                    <title>Gegebenheiten</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                    <multiple>true</multiple>
                    <index enabled="true">
                        <atomic>true</atomic>
                        <stored>true</stored>
                        <tokenised>true</tokenised>
                    </index>
                </property>
My problem is to apply multiple values by the use of checkboxes within a form.

abarisone
Star Contributor
Star Contributor
When you submit your form, you will have all the form data posted in the args variable and within the script you can do all the operations you need.
Here you can assign all the properties to your node using the proper methods.
You might use Alfresco debugger to take a look of args variable content.

Regards,
Andrea