help! contact form not working
-
I’m dropping in code for a contact form, and in preview it works, but when I look at it live it’s just the code.
I’m sure it’s a simple fix, but wordpress is so different than the last time I set up a site.
Can anyone help!?!
The blog I need help with is: (visible only to logged in users)
-
What, specifically is the code you’re trying to add?
Please use the “code” button above when sharing.
-
cut and paste from zoho as follows
<!-- Note : - You can modify the font style and form style to suit your website. - Code lines with comments Do not remove this code are required for the form to work properly, make sure that you do not remove these lines of code. - The Mandatory check script can modified as to suit your business needs. - It is important that you test the modified form before going live.--> <div id='crmWebToEntityForm' class='zcwf_lblLeft crmWebToEntityForm' style='background-color: white;color: black;max-width: 600px;'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'> <form action='https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads5268210000000364734 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory5268210000000364734()' accept-charset='UTF-8'> <input type='text' style='display:none;' name='xnQsjsdp' value='685b267cfbeb459bc3aa0ae9de88813020001179c439f852a461ecd9c3b0e79f'></input> <input type='hidden' name='zc_gad' id='zc_gad' value=''></input> <input type='text' style='display:none;' name='xmIwtLD' value='774a87305b15d3cdc4f90f43ea4cc90003d1819003014831c3464ffd72cd331d'></input> <input type='text' style='display:none;' name='actionType' value='TGVhZHM='></input> <input type='text' style='display:none;' name='returnURL' value='https://airquotelawpod.com' > </input> <!-- Do not remove this code. --> <style> html,body{ margin: 0px; } #crmWebToEntityForm.zcwf_lblLeft { width:100%; padding: 25px; margin: 0 auto; box-sizing: border-box; } #crmWebToEntityForm.zcwf_lblLeft * { box-sizing: border-box; } #crmWebToEntityForm{text-align: left;} #crmWebToEntityForm * { direction: ltr; } .zcwf_lblLeft .zcwf_title { word-wrap: break-word; padding: 0px 6px 10px; font-weight: bold; } .zcwf_lblLeft .zcwf_col_fld input[type=text], .zcwf_lblLeft .zcwf_col_fld textarea { width: 60%; border: 1px solid #ccc !important; resize: vertical; border-radius: 2px; float: left; } .zcwf_lblLeft .zcwf_col_lab { width: 30%; word-break: break-word; padding: 0px 6px 0px; margin-right: 10px; margin-top: 5px; float: left; min-height: 1px; } .zcwf_lblLeft .zcwf_col_fld { float: left; width: 68%; padding: 0px 6px 0px; position: relative; margin-top: 5px; } .zcwf_lblLeft .zcwf_privacy{padding: 6px;} .zcwf_lblLeft .wfrm_fld_dpNn{display: none;} .dIB{display: inline-block;} .zcwf_lblLeft .zcwf_col_fld_slt { width: 60%; border: 1px solid #ccc; background: #fff; border-radius: 4px; font-size: 12px; float: left; resize: vertical; } .zcwf_lblLeft .zcwf_row:after, .zcwf_lblLeft .zcwf_col_fld:after { content: ''; display: table; clear: both; } .zcwf_lblLeft .zcwf_col_help { float: left; margin-left: 7px; font-size: 12px; max-width: 35%; word-break: break-word; } .zcwf_lblLeft .zcwf_help_icon { cursor: pointer; width: 16px; height: 16px; display: inline-block; background: #fff; border: 1px solid #ccc; color: #ccc; text-align: center; font-size: 11px; line-height: 16px; font-weight: bold; border-radius: 50%; } .zcwf_lblLeft .zcwf_row {margin: 15px 0px;} .zcwf_lblLeft .formsubmit { margin-right: 5px; cursor: pointer; color: #333; font-size: 12px; } .zcwf_lblLeft .zcwf_privacy_txt { width: 90%; color: rgb(0, 0, 0); font-size: 12px; font-family: Arial; display: inline-block; vertical-align: top; color: #333; padding-top: 2px; margin-left: 6px; } .zcwf_lblLeft .zcwf_button { font-size: 12px; color: #333; border: 1px solid #ccc; padding: 3px 9px; border-radius: 4px; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .zcwf_lblLeft .zcwf_tooltip_over{ position: relative; } .zcwf_lblLeft .zcwf_tooltip_ctn{ position: absolute; background: #dedede; padding: 3px 6px; top: 3px; border-radius: 4px;word-break: break-all; min-width: 50px; max-width: 150px; color: #333; } .zcwf_lblLeft .zcwf_ckbox{ float: left; } .zcwf_lblLeft .zcwf_file{ width: 55%; box-sizing: border-box; float: left; } .clearB:after{ content:''; display: block; clear: both; } @media all and (max-width: 600px) { .zcwf_lblLeft .zcwf_col_lab, .zcwf_lblLeft .zcwf_col_fld { width: auto; float: none !important; } .zcwf_lblLeft .zcwf_col_help {width: 40%;} } </style> <div class='zcwf_title' style='max-width: 600px;color: black;'>Sticker Request</div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='First_Name'>First Name</label></div><div class='zcwf_col_fld'><input type='text' id='First_Name' name='First Name' maxlength='40'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='Last_Name'>Last Name<span style='color:red;'>*</span></label></div><div class='zcwf_col_fld'><input type='text' id='Last_Name' name='Last Name' maxlength='80'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='Email'>Email<span style='color:red;'>*</span></label></div><div class='zcwf_col_fld'><input type='text' ftype='email' id='Email' name='Email' maxlength='100'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row wfrm_fld_dpNn'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='Lead_Source'>Lead Source</label></div><div class='zcwf_col_fld'><select class='zcwf_col_fld_slt' id='Lead_Source' name='Lead Source' > <option value='-None-'>-None-</option> <option value='Advertisement'>Advertisement</option> <option value='Cold Call'>Cold Call</option> <option value='Employee Referral'>Employee Referral</option> <option value='External Referral'>External Referral</option> <option value='Online Store'>Online Store</option> <option selected value='Twitter'>Twitter</option> <option value='Facebook'>Facebook</option> <option value='Partner'>Partner</option> <option value='Google+'>Google+</option> <option value='Public Relations'>Public Relations</option> <option value='Sales Email Alias'>Sales Email Alias</option> <option value='Seminar Partner'>Seminar Partner</option> <option value='Internal Seminar'>Internal Seminar</option> <option value='Trade Show'>Trade Show</option> <option value='Web Download'>Web Download</option> <option value='Web Research'>Web Research</option> <option value='Chat'>Chat</option> </select><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='Street'>Street</label></div><div class='zcwf_col_fld'><input type='text' id='Street' name='Street' maxlength='250'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='City'>City</label></div><div class='zcwf_col_fld'><input type='text' id='City' name='City' maxlength='100'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='State'>State</label></div><div class='zcwf_col_fld'><input type='text' id='State' name='State' maxlength='100'></input><div class='zcwf_col_help'></div></div></div> <div class='zcwf_row'><div class='zcwf_col_lab' style='font-size:12px; font-family: Arial;'><label for='Zip_Code'>Zip Code</label></div><div class='zcwf_col_fld'><input type='text' id='Zip_Code' name='Zip Code' maxlength='30'></input><div class='zcwf_col_help'></div></div></div><div class='zcwf_row'><div class='zcwf_col_lab'></div><div class='zcwf_col_fld'><input type='submit' id='formsubmit' class='formsubmit zcwf_button' value='Submit' title='Submit'><input type='reset' class='zcwf_button' name='reset' value='Reset' title='Reset'></div></div> <script> function validateEmail5268210000000364734() { var form = document.forms['WebToLeads5268210000000364734']; var emailFld = form.querySelectorAll('[ftype=email]'); var i; for (i = 0; i < emailFld.length; i++) { var emailVal = emailFld[i].value; if((emailVal.replace(/^s+|s+$/g, '')).length!=0 ) { var atpos=emailVal.indexOf('@'); var dotpos=emailVal.lastIndexOf('.'); if (atpos<1 || dotpos<atpos+2 || dotpos+2>=emailVal.length) { alert('Please enter a valid email address. '); emailFld[i].focus(); return false; } } } return true; } function checkMandatory5268210000000364734() { var mndFileds = new Array('Last Name','Email'); var fldLangVal = new Array('Lastx20Name','Email'); for(i=0;i<mndFileds.length;i++) { var fieldObj=document.forms['WebToLeads5268210000000364734'][mndFileds[i]]; if(fieldObj) { if (((fieldObj.value).replace(/^s+|s+$/g, '')).length==0) { if(fieldObj.type =='file') { alert('Please select a file to upload.'); fieldObj.focus(); return false; } alert(fldLangVal[i] +' cannot be empty.'); fieldObj.focus(); return false; } else if(fieldObj.nodeName=='SELECT') { if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') { alert(fldLangVal[i] +' cannot be none.'); fieldObj.focus(); return false; } } else if(fieldObj.type =='checkbox'){ if(fieldObj.checked == false){ alert('Please accept '+fldLangVal[i]); fieldObj.focus(); return false; } } try { if(fieldObj.name == 'Last Name') { name = fieldObj.value; } } catch (e) {} } } if(!validateEmail5268210000000364734()){return false;} document.querySelector('.crmWebToEntityForm .formsubmit').setAttribute('disabled', true); } function tooltipShow5268210000000364734(el){ var tooltip = el.nextElementSibling; var tooltipDisplay = tooltip.style.display; if(tooltipDisplay == 'none'){ var allTooltip = document.getElementsByClassName('zcwf_tooltip_over'); for(i=0; i<allTooltip.length; i++){ allTooltip[i].style.display='none'; } tooltip.style.display = 'block'; }else{ tooltip.style.display='none'; } } </script> <!-- Do not remove this --- Analytics Tracking code starts --><a href="https://crm.zohopublic.com/crm/WebFormAnalyticsServeServlet?rid=774a87305b15d3cdc4f90f43ea4cc90003d1819003014831c3464ffd72cd331dgid685b267cfbeb459bc3aa0ae9de88813020001179c439f852a461ecd9c3b0e79fgid885e3c1045bd9bdcc91bdf30f82b5696gid14f4ec16431e0686150daa43f3210513&tw=61690b96c1d0471b638f31426f38e68aa67fb7ed6da86f32dc10ad817fe55a0a">https://crm.zohopublic.com/crm/WebFormAnalyticsServeServlet?rid=774a87305b15d3cdc4f90f43ea4cc90003d1819003014831c3464ffd72cd331dgid685b267cfbeb459bc3aa0ae9de88813020001179c439f852a461ecd9c3b0e79fgid885e3c1045bd9bdcc91bdf30f82b5696gid14f4ec16431e0686150daa43f3210513&tw=61690b96c1d0471b638f31426f38e68aa67fb7ed6da86f32dc10ad817fe55a0a</a><!-- Do not remove this --- Analytics Tracking code ends. --></form> </div> -
Ah yes, that type of code would require a paid Pro plan: https://wordpress.com/support/code/
We have our form system that you can use, no paid plan is required: https://wordpress.com/support/wordpress-editor/blocks/form-block/
-
-
Ah no, our form block only sends an email to the desired email address and also stores the reply in the Dashboard’s Feedback section.
If your desired CRM can receive and parse email, you could set the form’s email address to that: https://wordpress.com/support/wordpress-editor/blocks/form-block/#change-the-email-address-messages-are-sent-to
- The topic ‘help! contact form not working’ is closed to new replies.