Expand my Community achievements bar.

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

View solution in original post

1 Reply

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