Button Group
"dynamicForm": [
{
"fieldName": "is_BRCopy",
"fieldLabel": "Copy from Another Bottle Request?",
"size": 3,
"type": "button-group",
"className": "justify-content-around",
"dataFrom": {
"value": [
{
"value": 1,
"label": "Yes",
"color": "success"
},
{
"value": 2,
"label": "No",
"color": "danger"
}
]
},
"hideOnPage": {
"add": false,
"edit": true,
"view": true
}
},
{
"fieldName": "id_BR",
"fieldLabel": "Bottle Request Number",
"size": 3,
"type": "dropdown",
"dataFrom": {
"api": "BottleRequest",
"resp_key": "data",
"baseUrl": "fs",
"field_label": [
"letterNumber",
"Projects_name"
],
"get_params": [
{
"key": "id_Contacts",
"value": "id_Contacts",
"valueFrom": "other"
}
],
"field_value": "id",
"field_label_separator": " ",
"api_getAlways": true
},
"showIf": [
{
"fieldName": "is_BRCopy",
"operator": "===",
"value": 1
}
]
},
{
"fieldName": "note",
"fieldLabel": "Note",
"type": "textarea",
"size": 12
}
]Last updated