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

Content Fragment Models - Customization and Intelligence

Level 4
Level 4

We have Content Fragment Models which are used to create content. This then is exposed as JSON to UI layer. Some Models are shared across many components. We have some fields which are text-fields (though those are not Content Author friendly), we plan to change them to dropdown. But as model is shared across many components, it would be required to have all the values as part of dropdown.

We were looking for setting default value based on component, restrict number of values based on components. If there are any suggestions or pointers for this, any inputs or viewpoint or alternate suggestions would also help.

Thank you


1 Reply
Community Advisor
Community Advisor

You can write a utility to look for all the possible value which you set as a text filed and collect those and set in enumeration options.

and keep property name for dropdown as same as text.