Setting Default Values for Dropdowns in Content Fragment Models" | Community
Skip to main content
June 2, 2024
Solved

Setting Default Values for Dropdowns in Content Fragment Models"

  • June 2, 2024
  • 3 replies
  • 704 views

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.
Best answer by gkalyan

@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 and Community Advisor
gkalyanAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
June 4, 2024

@arbesakadriu 

This is a workaround. 

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

gkalyan
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
June 4, 2024

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

 

gkalyan
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
June 6, 2024

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