Copy link to clipboard
Copied
I'm trying to set up a minimalist automatic opt in to email marketing list.
While it currently works up to a point (email address is added to the subscriber list), it still sends off the opt-in email.
This is the form code
<div class="subscribe-to-the-blog">
<h4><img src="../images/subscribetotheblog.png" alt="subscribe to the blog" /></h4>
<div class="subscribe-form">
<p>Receive an update straight to your inbox every time I publish a new article</p>
<div class="field-email">
<form action="http://www.onlineiq.biz/CampaignProcess.aspx?ListID=52458" method="post" onsubmit="return checkWholeForm22196(this)" name="catemaillistform22196">
<div class="item">
<input type="hidden" class="cat_textbox_small" name="FullName" id="CLFullName" maxlength="255" value="Blog Lister" />
<input type="text" name="EmailAddress" id="CLEmailAddress" maxlength="255" placeholder="Your Email Address" />
<input type="submit" class="joinus_button" value="Join Us" id="catlistbutton" /></div>
</form>
</div>
<script type="text/javascript" src="http://www.onlineiq.biz/CatalystScripts/ValidationFunctions.js"></script>
<script type="text/javascript">
//<![CDATA[
function checkWholeForm22196(theForm){var why = "";if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.CaptchaV2) why += captchaIsInvalid(theForm, "Enter Word Verification in box below", "Please enter the correct Word Verification as seen in the image"); if (why != ""){alert(why);return false;}theForm.submit();return false;}
//]]>
</script>
</div>
</div>
Any ideas about what I am missing?
Hey there, If this is not on another site do not do an aboslute url, set it releative.
If you make a custom web form with subscription this is a better option then campaign form.
What you have with your form is the campain sign up form still with the captcha javascript (so wont submit correctly) and your missing the form paramater for double opt in.
So..
1. Make a custom web form and add campaign to it, nothing else. You should just have the security module, name fields and email and the campaign op
...Copy link to clipboard
Copied
Hey there, If this is not on another site do not do an aboslute url, set it releative.
If you make a custom web form with subscription this is a better option then campaign form.
What you have with your form is the campain sign up form still with the captcha javascript (so wont submit correctly) and your missing the form paramater for double opt in.
So..
1. Make a custom web form and add campaign to it, nothing else. You should just have the security module, name fields and email and the campaign option.
2. Get the code and put it where it needs to go to be modified.
3. You can remove the name fields (trust me on this) and title field and make sure you remove the javascript for these as well.
4. Checked="checked on the input checkbox for the sign up and you can hide that.
5. You should just have the email field, the submit button and the checkbox and you can style as you need to.
6. You need to add the opt in true to paramater to your form action:
&OPTIN=true
so.. (example only)
/FormProcessv2.aspx?WebFormID=12807&OID=540285&OTYPE=1&EID=0&CID=0&OPTIN=true
Copy link to clipboard
Copied
Thanks Liam!
Thats really clear. I wondered whether the form was the way to go as opposed to the Campaign form. I had tried it with adding the optin=true parameters on the campaign form but it still did not work, so this clarifies that I should use web form.
thanks again.
Ursh