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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

How to set Default value in Dropdown in fragment model ?

Avatar

Level 3

Hi,

I need to set Default value in Dropdown of fragment model as there is no property of "default value" in Dropdown datatype. Please suggest what need to do to get it.

Rohit4_0-1651220053621.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Rohit4 OOTB Default option is not available as of now, Please refer below URL to look for custom solution by extending current behavior. Also please log a ticket with Adobe.

https://blogs.perficient.com/2021/05/27/how-to-extend-content-fragment-model-data-types/

3 Replies

Avatar

Correct answer by
Community Advisor

@Rohit4 OOTB Default option is not available as of now, Please refer below URL to look for custom solution by extending current behavior. Also please log a ticket with Adobe.

https://blogs.perficient.com/2021/05/27/how-to-extend-content-fragment-model-data-types/

Avatar

Community Advisor

Try adding the jcr:property

selected = {Boolean}true

Avatar

Level 3

Hi @Anmol_Bhardwaj 

Where i need to add jcr:property , [ selected = {Boolean}true ] in below properties. Please let me know exact location where i need to add in below properties or other CRX window.

Rohit4_0-1651567297914.png