[SOLVED] MultiOptionField

Started by faunsen, November 07, 2016, 05:27:17 PM

Previous topic - Next topic
November 07, 2016, 05:27:17 PM Last Edit: November 25, 2016, 11:33:17 AM by 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

The CSVListField is exactly what I was looking for.

<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>

Hi Frank,

So this is solved? :)


Cheers,
Franco

Hi Franco,

yupp.

How can I mark a topic as solved?



Regards,
Frank

You can edit the first post's subject.