I'm doing a CRM integration and I need to be able to create a field that will be an array of objects, namely 2 more fields. How can I do this?
For simple types, this can be done as follows:
{
key: 'usersIds',
label: 'Users IDs',
type: 'integer',
list: true
},
But I can't do it for the complex variant:
{
key: ‘social’,
label: ‘Social’,
list: true,
children:
{
key: ‘id’,
label: ‘ID’,
type: ‘string’,
},
{
key: ‘type’,
label: ‘Type’,
required: true,
choices: {
Facebook: ‘Facebook’,
Instagram: ‘Instagram’,
Telegram: ‘Telegram’,
Twitter: ‘Twitter’,
Viber: ‘Viber’,
Whatsapp: ‘Whatsapp’,
Linkedin: ‘Linkedin’,
}
},
{
key: ‘link’,
label: ‘Link’,
required: true,
type: ‘string’,
}
]
}