When I try to update a user using the new custom fields introduced in v3 I get the following Error:
function(ctx, callback){
return callback(null, {
userFields: [
{
"property": "app_metadata.customer_number", // required
"label": "Customer Number",
"display": true,
"edit": {
"display": true,
"type": "text",
"component": "InputText",
"disabled": false
},
"create": {
"display": true,
"type": "text",
"component": "InputText",
"disabled": false
}
},
{
"property": "app_metadata.customer_groups",
"label": "Customer Groups",
"display": (function display(user, value, languageDictionary) {
return user.app_metadata.customer_groups.join(', ')
.replace('group1', 'Group One')
.replace('group2', 'Group Two')
.replace('group3', 'Group Three')
}).toString(),
"edit": {
"type": "select",
"component": "InputMultiCombo",
"options": [
{"value": "group1", "label": "Group One"},
{"value": "group2", "label": "Group Two"},
{"value": "group3", "label": "Group Three"}
],
"disabled": false
},
"create": {
"type": "select",
"component": "InputMultiCombo",
"options": [
{"value": "group1", "label": "Group One"},
{"value": "group2", "label": "Group Two"},
{"value": "group3", "label": "Group Three"}
],
"disabled": false
}
}
]
});
}