Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add ability to add consent text to inquiry form
Browse files Browse the repository at this point in the history
  • Loading branch information
B77Mills committed Oct 27, 2021
1 parent 1ade4b7 commit 471887b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/marko-web-inquiry/browser/default-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
</div>
</div>
</div>
<div v-if="onSubmitConsentText" class="row">
<div class="col-12">
<div class="form-group" v-html="onSubmitConsentText" />
</div>
</div>
<pre v-if="error" class="alert alert-danger text-danger">An error occurred: {{ error }}</pre>
<vue-recaptcha
ref="invisibleRecaptcha"
Expand Down Expand Up @@ -174,6 +179,10 @@ export default {
type: String,
default: 'en',
},
onSubmitConsentText: {
type: String,
default: null,
},
},
data: () => ({
firstName: '',
Expand Down
1 change: 1 addition & 0 deletions packages/marko-web-inquiry/components/form.marko
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ $ const lang = defaultValue(input.lang, "en");
contentType: content.type,
sitekey: RECAPTCHA_SITE_KEY,
lang: lang,
onSubmitConsentText: input.onSubmitConsentText,
} />
</marko-web-block>
</if>
1 change: 1 addition & 0 deletions packages/marko-web-inquiry/components/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"<header>": {},
"<description>": {},
"@content": "object",
"@on-submit-consent-text": "string",

"@with-header": "boolean",
"@with-description": "boolean",
Expand Down

0 comments on commit 471887b

Please sign in to comment.