diff --git a/frontend/src/Editor/WidgetManager/widgetConfig.js b/frontend/src/Editor/WidgetManager/widgetConfig.js index b8f8a46a4c..87188bdbdc 100644 --- a/frontend/src/Editor/WidgetManager/widgetConfig.js +++ b/frontend/src/Editor/WidgetManager/widgetConfig.js @@ -1482,14 +1482,17 @@ export const widgets = [ type: 'code', displayName: 'Default value', validation: { - schema: { type: 'boolean' }, + schema: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] }, }, }, values: { type: 'code', displayName: 'Option values', validation: { - schema: { type: 'array', element: { type: 'boolean' } }, + schema: { + type: 'array', + element: { type: 'union', schemas: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] }, + }, }, }, display_values: {