amis
amis copied to clipboard
咨询checkboxes提交时候如何去掉options中没有的选项
实现场景:
咨询checkboxes提交时候如何去掉options中没有的选项,如在下面的代码中提交值希望没有aaaaaaaa,不知道怎么弄呢?
存在的问题:
请简单描述你现在遇到的不符合预期的问题...
当前方案:
请粘贴你当前方案的完整 amis schema 代码...
{
"type": "page",
"body": {
"type": "form",
"debug": true,
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "checkboxes",
"required": 1,
"size": "full",
"name": "role",
"label": "选择",
"checkAll": true,
"multiple": true,
"joinValues": false,
"extractValue": true,
"cascade": true,
"value": [
"a",
"aaaaaaaa",
"b"
],
"options": [
{
"label": "OptionA",
"value": "a"
},
{
"label": "OptionB",
"value": "b"
},
{
"label": "OptionC",
"value": "c"
},
{
"label": "OptionD",
"value": "d"
}
]
}
]
}
}