Using a form checkbox field as a statement of consent

 

Data collection consent requires a positive opt-in - you should not use pre-ticked boxes or any other method of default consent. To add a checkbox field to your form with a link to your privacy policy or terms of service, follow the steps below.

1. Navigate to Form Library and start editing the form in question, or create a new form

Screenshot on 2024-08-28 at 16-20-54.png

2. Add a checkbox field

Markup 2024-08-28 at 20.19.41.png

3. Customize the field's settings: 

  • The label/title is how the field will appear in your leads and on the page unless hidden.
  • You can mark the field as required so people cannot submit the form without checking it.
  • Hide the label of the field if you only want the option text to appear.

Adding links to your statement of consent

For example, you would like your customers to see on your page a checkbox field that reads “I agree to the Data Storage and Data Processing Policies”, where Data Storage and Data Processing Policies is clickable and leads to a page with detailed policies. In this situation, you can use the code below to add a hyperlink to the checkbox field text.

<script>
function linkifyText(textToFind, url) {
// Get all text nodes in the body
var walker = document.createTreeWalker(
document.body,
NodeFilter.SHOW_TEXT,
null,
false
)
var textNode

// Iterate over each text node
while ((textNode = walker.nextNode())) {
// Check if the text node contains the textToFind
if (textNode.nodeValue.includes(textToFind)) {
// Create a new span element to wrap the text
var span = document.createElement('span')

// Set the inner HTML of the span to replace the textToFind with a link
span.innerHTML = textNode.nodeValue.replace(
textToFind,
`<a href="${url}" target="_blank">${textToFind}</a>`
)

// Replace the text node with the new span
textNode.parentNode.replaceChild(span, textNode)
}
}
}

// Usage
linkifyText(
'I agree with the Terms and Conditions',
'https://yourwebsite.com/termsandconditions'
)
</script>

Add the code to Javascript > Footer in the page editor and change the last part between the single quotation marks with:
1. The exact name of your field;
2. The URL of your policies.

Note: GDPR comes with stricter rules for obtaining consent, which should be reflected on your pages. Follow these guidelines when preparing your statement of consent:

  • Consent must be freely given, specific, informed and unambiguous.
  • A request for consent must be intelligible and in clear, plain language.
  • Silence, pre-ticked boxes, and inactivity will no longer suffice as consent.
  • Consent can be withdrawn at any time.
  • Consent for online services from a child under 13 is only valid with parental authorization.
  • Organisations must be able to evidence consent. 

Don't forget to Save  and Update the page and the end and to test this on the live URL of your landing page!