Unbundled script to pre-fill/hide consent fields on forms?
Hi,
I wondered if anyone's come across this scenario before who might be able to help:
We use a checkbox to log consent for marketing emails on our forms. Form pre-fill being what it is, a lot of our marketing activity serves to remove marketing consent, i.e. if someone in the database with consent or a "legitimate interests" lawful bases fills out a contact form and doesn't check the consent box. Furthermore, we require cookie/tracking consents which means things with marketing functions like the Munchkin code are not loaded consistently.
In theory we can - if we know a person has given consent, or has a "legitimate interests" lawful basis (both are independently defined in their own respective fields) - hide the consent field and information on the form. This could be managed using a standalone script/cookie which we wouldn't need cookie consent for.
But that's as far as I've got without a serious background in web development, so I wondered if anyone had encountered a similar issue in the past and a: built a method that works, b: thought up a better solution?