Is there any possibility to leave all MultipleSelect fields previously selected
any example for the code below?
{
“options”: [
{
“value”: “AC”,
“label”: “Acre”
},
{
“value”: “AL”,
“label”: “Alagoas”
},
{
“value”: “AP”,
“label”: “Amapá”
}
]
}
in case anyone still has this doubt, the solution to fill more than one field in the multiselect and add an array of default values right after the options
below is the example:
{
“options”: [
{
“value”: “AC”,
“label”: “Acre”
},
{
“value”: “AL”,
“label”: “Alagoas”
},
{
“value”: “AP”,
“label”: “Amapá”
}
],
“default”: [“AC”, “AL”, “AP”]
}