Lets say i have an array field and i want to display the 'add row' only when i check a checkbox or use a Select-field. Is this possible?
const Example: CollectionConfig = {
slug: 'example',
fields: [
{
name: 'row',
type: 'array',
labels: {
plural: 'rows',
singular: 'row',
},
fields: [
{
name: 'headline',
label: 'Headline',
type: 'text'
},
{
name: 'condition',
label: 'Add another one',
type: 'select',
defaultValue: 'no',
options: [
{
label: 'Yes',
value: 'yes'
},
{
label: 'No',
value: 'no'
}
]
}
]
}
]
}