Three distinct groups needed to be considered as part of the logic for this new reusable component that could then be plugged into any form.
The logic was decided by the country the user selected.
I first implemented this in the contact sales form, which I initially developed and is one of the most popular lead generation sources on Slack.com.
The user’s consent data also had to be piped into Salesforce to be processed and routed correctly.
Below is a sample of the spreadsheet that I was given showing a mapping of the countries’ consent requirements.
This conditional consent country data was stored in a library on the backend that the frontend could then read.
No prior consent is required for processing and/or marketing. Applied to most countries.
Prior consent is required for marketing. Applied to countries with more robust privacy consent laws.
Prior consent is required for processing the data and/or marketing. This only applies to Japan.
Slightly trickier to test since the checkbox for processing the data had to be checked to submit.