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

json for dropdown field in AEM Metadata Schema Form Editor

Avatar

Level 1

I am trying to add custom metadata using json in with a dropdown field in AEM Metadata Schema Form Editor

with a dropdown field in AEM Metadata Schema Form Editor, I cannot see how this works. can someone provide a sample Json file and an explanation

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @ddttom1,

Here is a sample JSON that shows supported format:

{
    "options": [
        {
            "text": "Test1",
            "value": "Value1"
        },
        {
            "text": "Test2",
            "value": "Value2"
        }
    ]
}

Please be aware that json file can not be added to the dam, it has to be under different location e.g /apps

asset-json.png

Values will not be visible under AEM Metadata Schema Form Editor.

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @ddttom1,

Here is a sample JSON that shows supported format:

{
    "options": [
        {
            "text": "Test1",
            "value": "Value1"
        },
        {
            "text": "Test2",
            "value": "Value2"
        }
    ]
}

Please be aware that json file can not be added to the dam, it has to be under different location e.g /apps

asset-json.png

Values will not be visible under AEM Metadata Schema Form Editor.