I am currently developing a feature that involves creating two dependent lists using values extracted from a JSON variable.
The data is structured like this:
{
"Name1": [
{
"Name1_Nickname": "ID1"
}
],
"Name2": [
{
"Name2_Nickaname": "ID2"
}
],
"Name3": [
{
"Name3_Nickname1": "ID3_1"
}, {
"Name3_Nickname2": "ID3_2"
}
]
}
Currently, I am working with a
Map<String,List<Map<String,String>>>
which I parsed into a JSON object. My goal is to create a primary Picklist containing all the options such as Name1, Name2, and Name3, then based on the selection of a certain Name, generate a secondary picklist displaying corresponding nicknames like Name1_Nickname for Name1 or Name3_Nickname1, Name3_Nickname2 for Name3.