6 Replies Latest reply: Apr 22, 2014 3:43 AM by Liam Dilley RSS

    is Minimal OPTIN no longer working in Web Forms ?

    JohnSSmith Community Member

      I cant seem to get the code to auto optin

       

      I created a web form, which includes the newsletter checkbox for a newsletter email list. I hide that, and make sure it is checked, as we *** add &OPTIN=TRUE

       

      Now the inline editor changes it to &OPTIN=TRUE and maybe that is my problem - no idea.

       

      Here is the code

       

          <form name="catwebformform45938" method="post" onsubmit="return checkWholeForm45938(this)" enctype="multipart/form-data" action="/FormProcessv2.aspx?WebFormID=34136&amp;OID={module_oid}&amp;OTYPE={module_otype} &amp;EID={module_eid}&amp;CID={module_cid}">
              <span class="req">*</span>  Required
              <table border="0" cellspacing="0" cellpadding="2" class="webform">
                  <tbody>
                      <tr>
                          <td>{module_ccsecurity}</td>
                      </tr>
                      <tr>
                          <td><label for="Title">Title</label><br />
                          <select name="Title" id="Title" class="cat_dropdown_smaller">
                          <option value="68127">DR</option>
                          <option value="68125">MISS</option>
                          <option value="68123" selected="selected">MR</option>
                          <option value="68124">MRS</option>
                          <option value="68126">MS</option>
                          </select></td>
                      </tr>
                      <tr>
                          <td><label for="FirstName">First Name <span class="req">*</span></label><br />
                          <input type="text" name="FirstName" id="FirstName" class="cat_textbox" maxlength="255" style="background-image: url(data:image/png;base64,ivborw0kggoaaaansuheugaaabaaaaaqcayaaaaf8/9haaabhkleqvq4eavto26 dqbd1ohqwas2lg9jybz+ak7hnwx2oiovf4upq0lj1fdkktevipel8aknukdcwmxpgsaieatvv3sx7uztitdu2s/98d ywow3dued4who/m2aix5lzv1aesy0+qiwhelyi+ytl0pq69sxaxkwia4rmrtdnske59jumcuzd6xiafez6fgcdj8ky 4y7kautrngd7jyebxsdope3a0qgpsnionnymo67lgsqn9t41f2qgrqrrfcwyzoif2qybukkbcogpxdvey9rmwgnsjf 9ccyesjhk3f5dyt1hx9gr0llqr30tnjkuecx2uius4rni+aj6sjr0am8aaumpam/rrehywhxqbfaa9kh3/8/nvhxay gasz/il8ialkclbfnvaaaaabjru5erkjggg==); background-repeat: no-repeat; background-attachment: scroll; background-position: right center;" /> </td>
                      </tr>
                      <tr>
                          <td><label for="LastName">Last Name <span class="req">*</span></label><br />
                          <input type="text" name="LastName" id="LastName" class="cat_textbox" maxlength="255" /> </td>
                      </tr>
                      <tr>
                          <td><label for="EmailAddress">Email Address <span class="req">*</span></label><br />
                          <input type="text" name="EmailAddress" id="EmailAddress" class="cat_textbox" maxlength="255" /> </td>
                      </tr>
                      <tr>
                          <td><label for="CAT_Custom_179832">Property Address</label><br />
                          <textarea name="CAT_Custom_179832" id="CAT_Custom_179832" cols="10" rows="4" class="cat_listbox" onkeydown="if(this.value.length&gt;=4000)this.value=this.value.substring(0,3999);"></text area></td>
                      </tr>
                      <tr>
                          <td><scan class="hide"><input type="checkbox" checked="yes" name="CampaignList_10142&amp;OPTIN=TRUE" selected="checked" />Subscribe to: Newsletter</scan></td>
                      </tr>
                      <tr>
                          <td><input type="submit" class="cat_button" value="Submit" id="catwebformbutton" /></td>
                      </tr>
                  </tbody>
              </table>
              <script src="/CatalystScripts/ValidationFunctions.js" type="text/javascript"></script>
              <script type="text/javascript">

      //<![CDATA[

      var submitcount45938 = 0;function checkWholeForm45938(theForm){var why = "";if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if(why != ""){alert(why);return false;}if(submitcount45938 == 0){submitcount45938++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}

      //]]>

      </script>

          </form>

       

      The problem is that, the subsrcibee does not get the optin email, which is good, but he is not subscribed either.