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

SOLVED

[AEM 6.6] Default value on CF dropdown.

Jeanmaradiaga
Level 4
Level 4

Is there an easy way to select a default value for a CF dropdown?

1 Accepted Solution
lukaszm
Correct answer by
Level 8
Level 8

Hi @Jeanmaradiaga, I think this is not possible from UI, however because dropdown in CF is represented by granite/ui/components/coral/foundation/form/select, you can simply change emptyOption property value from true to false. Thanks to that your dropdown will initially show first option from list instead of empty one. Below you can see what result you can expect.

dropdown-without-empty-option.png

cf-dropdown-crx.jpg

View solution in original post

1 Reply
lukaszm
Correct answer by
Level 8
Level 8

Hi @Jeanmaradiaga, I think this is not possible from UI, however because dropdown in CF is represented by granite/ui/components/coral/foundation/form/select, you can simply change emptyOption property value from true to false. Thanks to that your dropdown will initially show first option from list instead of empty one. Below you can see what result you can expect.

dropdown-without-empty-option.png

cf-dropdown-crx.jpg