Skip to main content
Jun 2, 2024 11:17 PM UTC
Solved

Setting Default Values for Dropdowns in Content Fragment Models"

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
gkalyan
gkalyanAccepted solution
Adobe Champion, Community Advisor, UG Leader
Jun 4, 2024 10:40 PM UTC

@arbesakadriu 

This is a workaround. 

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

3 replies

gkalyan
Adobe Champion, Community Advisor, UG Leader
gkalyanAdobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Jun 4, 2024 10:40 PM UTC

@arbesakadriu 

This is a workaround. 

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

Translate
gkalyan
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Jun 4, 2024 10:49 PM UTC

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

 

Translate
gkalyan
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Jun 6, 2024 4:06 PM UTC

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

Translate