Skip to content

Commit

Permalink
Support html in thank you page.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Dec 19, 2024
1 parent e872328 commit 1a499db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => {
</Grid>,
);

let thankyou = data.thankyou?.data || '';
let thankyou = data.thankyou || '';

// Add formfields
thankyou = thankyou.replace('${formfields}', formfields);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1a499db

Please sign in to comment.