Discussions
Use select2 to query data from a dropdown list
over 2 years ago by Thomas Summerfield
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"
}