is there a way to define the condition to enable/disable fields inside the meta, For example
const meta = [
{
key: 'favoriteFruit',
label: 'Favorite Fruit',
widget: 'radio-group',
options: ['Apple', 'Orange', 'Other'],
initialValue: 'Apple',
},
{
key: 'disableInput',
label: 'Sample Input to disable if the user selects Orange,
widget: 'input',
},
]
I want to disable the input field if the user selects the Orange from the radio group
is there a way to define the condition to enable/disable fields inside the meta, For example
const meta = [
{
key: 'favoriteFruit',
label: 'Favorite Fruit',
widget: 'radio-group',
options: ['Apple', 'Orange', 'Other'],
initialValue: 'Apple',
},
{
key: 'disableInput',
label: 'Sample Input to disable if the user selects Orange,
widget: 'input',
},
]
I want to disable the input field if the user selects the Orange from the radio group