These docs are for v3.5. Click to read the latest docs for v5.0.

Discussions

Ask a Question
Back to All

Use select2 to query data from a dropdown list

For some reason we cannot seem to get the select2 data out of another open content module.

This is the options json.

{
"fields": {
"items": {
"fields": {
"location": {
"type": "string"
}
}
}
}
}

And this is the schema.json
{
"type": "object",
"properties": {
"Locations":{
"type": "array",
"items": {
"location": {
"type": "text"
}
}
}
}
}

we are trying to extract a list of locations from this array using:
"Locations": {
"type": "select2",
"dataService": {
"data": {
"moduleId": "3833",
"tabId": "76",
"valuefield": "Id",
"textfield": "Location",
},
"action":"Lookup"
}