type: select
values: [val1,val2,..] | [{"id":"id1","value":"value1"},{"id":"id2","value":"value2"},..]
show_select_value: (true, false) if this attribute is true the value in the views will be replaced with the value of the select.
{
"DataBaseTables": {
"TableName": {
"interface": {
"fields": {
"field_name": {"name": "Opción Correcta",
"type": "select", "values": [1,2,3,4],"defaultvalue":1}, "show_select_value": true
}
}
}
}
}
When you want to get the values from a external table/entity use:
external_values": "datastore|db"
entity: "table_or_entity_name"
"fields": "{id_fields},{others_fields}"
"linked_field": "{id_field_in_external_values}"
"fields": {
"UserOrganizations": {"name":"Organizations",
"type": "select",
"external_values": "datastore",
"entity": "CloudFrameWorkOrganizations",
"fields": "KeyName",
"linked_field": "KeyName","where_condition":"field='{{Internalfield}}'"},
},