diff --git a/packages/entities/entities-plugins/src/components/PluginForm.vue b/packages/entities/entities-plugins/src/components/PluginForm.vue index 2136fa80bd..44d815ded1 100644 --- a/packages/entities/entities-plugins/src/components/PluginForm.vue +++ b/packages/entities/entities-plugins/src/components/PluginForm.vue @@ -531,21 +531,25 @@ const buildFormSchema = (parentKey: string, response: Record, initi if (scheme.elements && scheme.type === 'array') { const elements = scheme.elements if (elements.type === 'string' && !elements.one_of) { - const { help, label } = initialFormSchema[field] + const { help, label, hint } = initialFormSchema[field] - initialFormSchema[field] = { ...JSON.parse(JSON.stringify(ArrayStringFieldSchema)), help, label } + initialFormSchema[field] = { help, label, hint, ...JSON.parse(JSON.stringify(ArrayStringFieldSchema)) } } } + if (scheme.hint) { + initialFormSchema[field].hint = scheme.hint + } + // Custom frontend schema override if (pluginSchema && !pluginSchema.overwriteDefault) { Object.keys(pluginSchema).forEach(plugin => { // Check if current plugin matches any of custom schema keys if (plugin === field) { // Use custom defined schema instead of building from default && set field label - const { help, label } = initialFormSchema[field] + const { help, label, hint } = initialFormSchema[field] - initialFormSchema[field] = { help, label, ...(pluginSchema[plugin as keyof typeof pluginSchema] as Record) } + initialFormSchema[field] = { help, label, hint, ...(pluginSchema[plugin as keyof typeof pluginSchema] as Record) } } }) }