From 4d58c25f94aa1a62652dce1d18b91b65a95b6d6d Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Mon, 19 Aug 2024 17:47:09 +0200 Subject: [PATCH] :sparkles: [open-formulieren/open-forms#4542] Add email address verification option to builder form --- src/registry/email/edit.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/registry/email/edit.tsx b/src/registry/email/edit.tsx index 286a405..1277591 100644 --- a/src/registry/email/edit.tsx +++ b/src/registry/email/edit.tsx @@ -87,6 +87,7 @@ const EditForm: EditFormDefinition = () => { {/* Validation tab */} + @@ -190,4 +191,26 @@ const IsConfirmationRecipient: React.FC = () => { ); }; +const RequireVerification = () => { + const intl = useIntl(); + const tooltip = intl.formatMessage({ + description: "Tooltip for email 'openForms.requireVerification' builder field", + defaultMessage: `When email address verification is enabled, the user must verify + their email address before they can submit the form. This proves the email address + exists and that they have access to the account.`, + }); + return ( + + } + tooltip={tooltip} + /> + ); +}; + export default EditForm;