Weird bug I came across…
I have some form code from Hubspot that I want to include on some pages.
When I paste it into a channel field text area that I have set up it works fine in Safari and FF.
When I do the same thing in IE the form breaks for some reason.
The form is located here http://skodamin.www66.a2hosting.com/marketing/contact/
Say I were to go into the CMS and edit that entry and resubmit through IE, the form wouldn’t show up any longer.
Are there any known bugs I should be aware of with certain things in the CMS not working with IE?
Here’s the code from Hubspot that I’m copying/pasting. Nothing that I would think could cause issues.
<form action="http://web.skodaminotti.com/Default.aspx?app=iframeform&hidemenu=true&ContactFormID=65636" method="post">
<input type="hidden" name="FormSubmitRedirectURL" id="FormSubmitRedirectURL" value="http://marketing.skodaminotti.com/thank-you/" >
<input type="hidden" name="Lead_Src" id="LeadSrc" value="Contact Us" />
[removed]/* <![CDATA[ */
HubSpotFormSpamCheck_LeadGen_ContactForm_65636_m0 = function() {
var key = document.getElementById('LeadGen_ContactForm_65636_m0spam_check_key').value;
var sig = '';
for (var x = 0; x< key.length; x++ ) {
sig += key.charCodeAt(x)+13;
}
document.getElementById('LeadGen_ContactForm_65636_m0spam_check_sig').value = sig;
/* Set the hidden field to contain the user token */
var results = [removed].match ( '(^|;) ?hubspotutk=([^;]*)(;|$)' );
if (results && results[2]) {
document.getElementById('LeadGen_ContactForm_65636_m0submitter_user_token').value = results[2];
} else if (window['hsut']) {
document.getElementById('LeadGen_ContactForm_65636_m0submitter_user_token').value = window['hsut'];
}
return true;
};
/*]]>*/[removed]
<input type='hidden' id='LeadGen_ContactForm_65636_m0submitter_user_token' name='LeadGen_ContactForm_65636_m0submitter_user_token' value='' /><input type='hidden' name='ContactFormId' value='65636' ><input type='hidden' id='LeadGen_ContactForm_65636_m0spam_check_key' name='LeadGen_ContactForm_65636_m0spam_check_key' value='osndonimgmdmoemprldmmgednrqiqgdslgpmmdoeljtctnkclhppuwfrenmo' /><input type='hidden' id='LeadGen_ContactForm_65636_m0spam_check_sig' name='LeadGen_ContactForm_65636_m0spam_check_sig' value='' ><div class='ContactFormItems FormClassID_65636'><table border="0" cellspacing="0" cellpadding="5">
<tr><td> </td><td>First Name</td></tr>
<tr><td> </td><td><input type="Text" name="LeadGen_ContactForm_65636_m0:FirstName" class="StandardI AutoFormInput LeadGen_ContactForm_65636_m0_AutoForm" id="LeadGen_ContactForm_65636_m0_FirstName" value="" /><div class="fieldclear"></div></td></tr>
<tr><td> </td><td>Last Name</td></tr>
<tr><td> </td><td><input type="Text" name="LeadGen_ContactForm_65636_m0:LastName" class="StandardI AutoFormInput LeadGen_ContactForm_65636_m0_AutoForm" id="LeadGen_ContactForm_65636_m0_LastName" value="" /><div class="fieldclear"></div></td></tr>
<tr><td> </td><td>Email (we will keep your email completely private)</td></tr>
<tr><td> </td><td><input type="Text" name="LeadGen_ContactForm_65636_m0:Email" class="StandardI AutoFormInput LeadGen_ContactForm_65636_m0_AutoForm" id="LeadGen_ContactForm_65636_m0_Email" value="" /><div class="fieldclear"></div></td></tr>
<tr><td> </td><td>Message</td></tr>
<tr><td> </td><td><textarea type="Text" name="LeadGen_ContactForm_65636_m0:Message" class="StandardI AutoFormInput LeadGen_ContactForm_65636_m0_AutoForm" id="LeadGen_ContactForm_65636_m0_Message" ></textarea><div class='fieldclear'></div></td></tr>
<tr><td></td><td><input class='FormSubmitButton' type='submit' name='LeadGen_ContactForm_Submit_LeadGen_ContactForm_65636_m0' value="Submit"></td></tr>
</table></div>
</form>