Expand my Community achievements bar.

SOLVED

Setting Default Values for Dropdowns in Content Fragment Models"

Avatar

Level 1

I have a dropdown in one of my content fragment model and I want to make sure there is some value in there by default. How can I achieve this?

arbesakadriu_0-1717370152970.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@arbesakadriu 

This is a workaround. 

In the CRX de, remove the "emptyOption" property and the first option will be showing up

enum_cf.png

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@arbesakadriu 

This is a workaround. 

In the CRX de, remove the "emptyOption" property and the first option will be showing up

enum_cf.png

Avatar

Community Advisor

@arbesakadriu once you remove the "emptyOption" property from the model, you CF fragment should show first value as the default value.

 

Avatar

Community Advisor

@arbesakadriu Did this workaround help you in resolving your issue?