Skip to content

Commit 1a499db

Browse files
committed
Support html in thank you page.
1 parent e872328 commit 1a499db

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => {
138138
</Grid>,
139139
);
140140

141-
let thankyou = data.thankyou?.data || '';
141+
let thankyou = data.thankyou || '';
142142

143143
// Add formfields
144144
thankyou = thankyou.replace('${formfields}', formfields);

frontend/packages/volto-form-block/src/schemaFormBlock/schema.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,8 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => {
299299
type: 'string',
300300
title: intl.formatMessage(messages.thankyou),
301301
description: intl.formatMessage(messages.thankyou_description),
302-
widget: 'richtext',
303-
default: {
304-
data: '${formfields}',
305-
},
302+
widget: 'textarea',
303+
default: '${formfields}',
306304
},
307305
captcha: {
308306
title: intl.formatMessage(messages.captcha),

0 commit comments

Comments
 (0)