Expand my Community achievements bar.

SOLVED

Dynamically populating multiselect dropdowns

Avatar

Level 2

Hi

Is it possible to add multiple default values? Like, I have a multiselect dropdown with values:

1=Argentina

2=China

3=Serbia

 

I would like to preselect values 2 and 3 (China and Serbia). I tried to add 2,3 to the default field, but it doesn't work when I add a comma separated list of values. It works when I only add 1 value.

 

Is it not possible? 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
3 Replies

Avatar

Employee Advisor

Try adding a new line character between the two values

Avatar

Correct answer by
Employee Advisor

workflowuser_0-1700756279062.pngworkflowuser_1-1700756321338.png

 

Avatar

Level 2

In your example, did you use a standard drop-down element with the multiselect setting enabled?

I don't have the possibility to add multiple lines to the default option. It is only one input field. What version of AEM are you using? We have Adobe Experience Manager 6.5.15.0.

marcinklwR9iu_0-1700810505165.png

This is how it should be after start:

marcinklwR9iu_0-1700810880764.png