So I'm building some content with Formio and it has the ability to add custom JSON content for the drop down options.
This is my JSON:
[
{
"MBB": [
{
"Name": "BYO Sim"
},
{
"Name": "Device Sim"
},
{
"Name": "Apple Watch"
},
{
"Name": "Samsung Watch"
}
],
"WB": [
{
"Name": "4G with Device"
},
{
"Name": "4G without Device"
},
{
"Name": "5G"
}
]
}
]
What I want to do is show all values that are under MBB:Name
I have found that when I enter the below, I get the value "Device Sim" returned but I want to return all values under MBB and Name as I will soon be adding more options, not just Name.
item.MBB[1].Name
If I just do:
item.MBB.Name
I just get an undefined outcome so I'm a little lost.
Any help would be appreciated!