Default or initial values for Multi-select

Is there a possibility to define initial values in a Multi-select element?

There is a initialValue property for many element that I can define a default value, but for a multi-select, I donot see any such property.

There is no such an option for multi-select or other complex types that you can model, because they are groups and no field .

Currently this can only be solved programmatically.

Hi @yousef-pure-pebble

@stefan-cold-haze is right, we can’t model this and would need to speak to a developer.

There’s actually quite a lot that we can’t model relating to initial values and repeats due to the complexity of the issue.

For example, if you have a repeatable group, we can:

  • Model a Inline Repeat
  • Set Initial Rows to a value between 1 and 10. (This is only available for Inline Repeats)
  • Set an Initial Value for a Control in this Repeat.

However, this will only set the same value for all rows.

As the Multi-Select is represented in the Document Model by a Repeatable Group with an Enumeration or String Field inside, you need to do something like:

  • Create a new group for each value
  • Set a unique value inside each new group

You can see this happening if you use the Ad-hoc Test of Form Model Preview to test the Multi-Select and choose “Show Data” in the options on the left hand side.