From 1a499db7c24983175ae51b084488ea0b7b13798d Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Wed, 18 Dec 2024 21:20:49 -0700 Subject: [PATCH] Support html in thank you page. --- .../volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx | 2 +- .../packages/volto-form-block/src/schemaFormBlock/schema.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx index 073809c..745cd96 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx @@ -138,7 +138,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { , ); - let thankyou = data.thankyou?.data || ''; + let thankyou = data.thankyou || ''; // Add formfields thankyou = thankyou.replace('${formfields}', formfields); diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js index c67cdea..a874954 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js @@ -299,10 +299,8 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { type: 'string', title: intl.formatMessage(messages.thankyou), description: intl.formatMessage(messages.thankyou_description), - widget: 'richtext', - default: { - data: '${formfields}', - }, + widget: 'textarea', + default: '${formfields}', }, captcha: { title: intl.formatMessage(messages.captcha),