Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Default Dropdownlist Selection

Avatar

Level 1

This is in Adaptive Forms. I am populating a dropdownlist with values. I would like a default value to appear as selected. How can I achieve this? TIA

1 Accepted Solution

Avatar

Correct answer by
Level 7

If Its a static list of items, you can set the default value on the component itself by entering a value into the Default Value field

1523896_pastedImage_2.png

e.g. to set "Item 2" as the default:

1524170_pastedImage_3.png

or using the Rules Editor:

1524171_pastedImage_5.png

If its a dynamic list, you can set the value property [2] once the list is initialized [3]

1524172_pastedImage_6.png

[2] Adaptive Forms Class: GuideDropDownList

[3] Adobe Experience Manager Help | Adaptive Form Expressions

0 Replies

Avatar

Correct answer by
Level 7

If Its a static list of items, you can set the default value on the component itself by entering a value into the Default Value field

1523896_pastedImage_2.png

e.g. to set "Item 2" as the default:

1524170_pastedImage_3.png

or using the Rules Editor:

1524171_pastedImage_5.png

If its a dynamic list, you can set the value property [2] once the list is initialized [3]

1524172_pastedImage_6.png

[2] Adaptive Forms Class: GuideDropDownList

[3] Adobe Experience Manager Help | Adaptive Form Expressions