Hi,
We are creating a "double opt-in" email confirmation process for our European subscribers (Europeans who subscribe to our newsletters are required by European law to confirm their subscription through a follow-up confirmation email).
We created a web form with a form field, "Country," and if any European residence selects a European country of residence in the form field, then an automated confirmation email is sent to confirm their subscription; for anyone outside the European union (in the US, for example), they are subscribed to our newsletters (without a confirmation [double opt-in] email process).
Can anyone helps us with the JavaScript code that's required for the following Adobe Campaign "double opt-in" workflow:

...for JavaScripts, "Trigger Double Opt-in in Email," and "Subscribe to the service."
Can anyone help us with the JavaScript or help us get going?
Thank you.