Hi All.
I was wondering if there is an option to allow multiple selections in a single select field and storage it as an array in the user_metadata space? Or could be a checkboxes field an alternative?
var options = {
additionalSignUpFields: [{
type: "select",
name: "preferences",
placeholder: "My Preferences",
options: [
{value: "a", label: "Preference Yellow"},
{value: "b", label: "Preference Red"},
{value: "c", label: "Preference Green"},
{value: "d", label: "Preference Purple"},
{value: "e", label: "Preference Black"}
],
// The following properties are optional
icon: "https://example.com/assests/location_icon.png",
prefill: "us"
}]
}
And save it as:
{
"user_metadata": {
"preferences": [
{
"value": "a" // Yellow
},
{
"value": "d" // Purple
}
]
}
}