[RESOLVED] Set selected value on a list of options

I have a list of options - type string. Multiple is allowed. It is a list of email addresses:

["John Doe<JohnD@domian.com>",Jane Doe<JaneD@domain.com>","Another Name<AnotherN@domain.com"]

I want to preselect two of the names. I have tried everything I can think of in the "selected value" field.

Does someone know how?

Thanks in advance for your help.

 

Hello,

In the List widget, you have two item :

Available Values (where you put your list)

Selected value

In the selected, give your selected list as an Array , for example return 

["Jane Doe","Another Name"]

Don't forget the change the return type from String to ArrayList.

Click on the pencil, select "script", then give the list below. On the bottom on  the pop up, change the Return type to java.util.List.

It's works on 6.1.2

Perfect! What I was doing wrong - I was not marking the return type as a list but was using the default string. Thanks for helpoing me past this.

You welcom.

Thanks for your return, and don't hesitate to close the question, that's help us to focus on open question.

 

Hoe do I close a question?