I have an query that is returning a simple array:
[
{
"id": "C0101",
"type": "AIRLINK",
"description": "BACKHAUL"
},
{
"id": "C0102",
"type": "AIRLINK",
"description": "CABLE END"
},
{
"id": "C0103",
"type": "AIRLINK",
"description": "CPE"
}
]
And on a select box component, I am using the ID as my 'values' field, like this:
{{formatDataAsObject(CauseCodes.data).id}}
But for the 'labels' field, how can I join the "type" and "description" values into a single line?
For instance, I would each label to look like:
AIRLINK - BACKHAUL
AIRLINK - CABLE END
AIRLINK - CPE
Currently, I only have the 'description' field set as my 'label', like this:
{{formatDataAsObject(CauseCodes.data).description}}
Any suggestions would be appreciated!
Thanks