From 2422fd3094e8eaddac926a3b73d3d328079c0ae4 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Fri, 4 Aug 2023 15:14:54 +0100 Subject: [PATCH] Add to playground --- support/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/support/index.html b/support/index.html index d2044ff0c5..cfe9fb2e8e 100644 --- a/support/index.html +++ b/support/index.html @@ -155,7 +155,17 @@

validator: function () { return true; } - } + }, + { + type: 'checkbox', + name: 'newsletter', + prefill: 'false', + placeholder: 'I hereby agree that I want to receive marketing emails from your company', + validator: (value) => ({ + valid: value === 'true', + hint: 'This is a mandatory field', + }), + }, ], hooks: { loggingIn: function (context, done) {