I have been looking at how to add this JS to the form. I have seen several posts that point to a developer guide, but I don't seem to have an option to add to the embedded code on a form from Form Actions?
You add the code inside a separate <script> tag, right after the embed code.
On a Marketo LP, put the <script> just before the closing </body> tag.
Just a bit of a note, not so much on the functionality, but on what this checkbox is supposed to do.
Depending on where you're located, someone might consider this to be a "pre-checked box." That the user has to actively opt-out instead of actively opt-in. If you're in Canada, for example, you cannot have pre-checked opt-in boxes. I don't know where you're located, so be sure to check with your legal or compliance teams.
Thank you for pointing this out. I did get permission from our DPO that they were happy to proceed with this option.