From 471887b5a90138c6856437b06ac404a251a63d43 Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Wed, 27 Oct 2021 08:58:08 -0500 Subject: [PATCH] Add ability to add consent text to inquiry form --- packages/marko-web-inquiry/browser/default-form.vue | 9 +++++++++ packages/marko-web-inquiry/components/form.marko | 1 + packages/marko-web-inquiry/components/marko.json | 1 + 3 files changed, 11 insertions(+) diff --git a/packages/marko-web-inquiry/browser/default-form.vue b/packages/marko-web-inquiry/browser/default-form.vue index 39422bbc3..933cf7b7e 100644 --- a/packages/marko-web-inquiry/browser/default-form.vue +++ b/packages/marko-web-inquiry/browser/default-form.vue @@ -130,6 +130,11 @@ +
+
+
+
+
An error occurred: {{ error }}
({ firstName: '', diff --git a/packages/marko-web-inquiry/components/form.marko b/packages/marko-web-inquiry/components/form.marko index 971f97438..bce6aab1d 100644 --- a/packages/marko-web-inquiry/components/form.marko +++ b/packages/marko-web-inquiry/components/form.marko @@ -41,6 +41,7 @@ $ const lang = defaultValue(input.lang, "en"); contentType: content.type, sitekey: RECAPTCHA_SITE_KEY, lang: lang, + onSubmitConsentText: input.onSubmitConsentText, } /> diff --git a/packages/marko-web-inquiry/components/marko.json b/packages/marko-web-inquiry/components/marko.json index 4e8cfac01..3d6aca39c 100644 --- a/packages/marko-web-inquiry/components/marko.json +++ b/packages/marko-web-inquiry/components/marko.json @@ -4,6 +4,7 @@ "
": {}, "": {}, "@content": "object", + "@on-submit-consent-text": "string", "@with-header": "boolean", "@with-description": "boolean",