English Forums > Development and Code Review

[SOLVED] MultiOptionField

(1/1)

faunsen:
Hi,

for a new plugin I need the OptionField but with multiple selection.
The InterfaceField type for example has such a multiple selection.

Is it possible to do the same with a simple list?
Or is there a way to define an ArrayField that occurs as a multiple_select in the UI?


Kind regards
Frank

faunsen:
The CSVListField is exactly what I was looking for.

--- Code: ---<MyItem type="CSVListField">
   <Required>Y</Required>
   <default>value1,value2</default>
   <SelectOptions>
      <value1>Value one</value1>
      <value2>Value two</value2>
      <value3>Value three</value3>
      <value4>Value four</value4>
   </SelectOptions>
</MyItem>

--- End code ---

franco:
Hi Frank,

So this is solved? :)


Cheers,
Franco

faunsen:
Hi Franco,

yupp.

How can I mark a topic as solved?



Regards,
Frank

franco:
You can edit the first post's subject.

Navigation

[0] Message Index

Go to full version