I am trying to embed the Contact Form from Zoho CRM into our
existing WordPress website to replace our current contact form.
The look on the website is not similar to the 'Preview'
when I am setting up the form in the CRM, and I have limited html and
css knowledge that is stopping me from making some minor changes to
the appearance and style of the form.
<div id="call"><span>Request more
info</span><span id="divSubQ"><b
style="font-size:11px; display:block; padding-bottom:1px;
padding-top:0px; font-weight:400;">Name<font
color="#FF0000">*</font></b>[text* name 20
class:inp] <b style="font-size:11px; display:block;
padding-bottom:1px; padding-top:2px; font-weight:400;">Country
of Residence</b>[text country 20 class:inp]<b
style="font-size:11px; display:block; padding-bottom:1px;
padding-top:2px; font-weight:400;">Telephone<font
color="#FF0000">*</font></b>[text* telephone
20 class:inp]<b style="font-size:11px; display:block;
padding-bottom:1px; padding-top:2px;
font-weight:400;">E-Mail<font
color="#FF0000">*</font></b>[email* email 20
class:inp]<b style="font-size:11px; display:block;
padding-bottom:1px; padding-top:2px;
font-weight:400;">Comments</b>[textarea comments 20x5
class:inp]<p align="center" style="margin: 2px 0px
0px 0px;">[submit class:but "Submit"]</span></div>
We would like to retain the appearance and style of this form, but
insert the code so that the entries are created as leads in Zoho CRM.
<div id='crmWebToEntityForm' style='width:600px;margin:auto;'>
<META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
<form
action='
https://crm.zoho.com/crm/WebToLeadForm'
name=WebToLeads1294899000000117019 method='POST'
onSubmit='javascript:document.charset="UTF-8"; return
checkMandatory()' accept-charset='UTF-8'>
<!-- Do not remove this code. -->
<input type='text' style='display:none;'
name='xnQsjsdp' value='27fe81240b4001314d1f6996efed533fac64b489b6254dff74eb4e32fb910282'/>
<input type='hidden' name='zc_gad'
id='zc_gad' value=''/>
<input type='text' style='display:none;'
name='xmIwtLD' value='15dce3f4420879a91005e1b5208f6a36b344f5aad0e5964d2e9903845a54428d'/>
<input type='text' style='display:none;'
name='actionType' value='TGVhZHM='/>
<input type='text' style='display:none;'
name='returnURL'
value='https://www.eurospeak.org.uk' />
<!-- Do not remove this code. -->
<style>
tr ,
td {
padding:6px;
border-spacing:0px;
border-width:0px;
}
</style>
<table style='width:600px;background-color:#ffffff;color:black'>
<tr><td colspan='2'
style='text-align:left;color:black;font-family:Arial;font-size:14px;'><strong>Request
More Information</strong></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>First
Name<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='40' name='First
Name' /></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>Last
Name<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='80' name='Last
Name' /></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>Telephone
Number<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='30'
name='Phone' /></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>Email<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='100'
name='Email' /></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>Country
of Residence<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='30'
name='Country' /></td></tr>
<tr><td
style='nowrap:nowrap;text-align:right;font-size:12px;font-family:Arial;width:200px;'>Comments<span
style='color:red;'>*</span></td><td
style='width:250px;' ><input type='text'
style='width:250px;' maxlength='30'
name='LEADCF1' /></td></tr>
<tr><td colspan='2'
style='text-align:center; padding-top:15px;'>
<input style='font-size:12px;color:#131307'
type='submit' value='Submit' />
<input type='reset'
style='font-size:12px;color:#131307' value='Reset' />
</td>
</tr>
</table>
<script>
var mndFileds=new Array('First Name','Last Name','Email','Phone','Country','LEADCF1');
var fldLangVal=new Array('First Name','Last
Name','Email','Telephone Number','Country of Residence','Comments');
function checkMandatory() {
var name='';
var email='';
for(i=0;i<mndFileds.length;i++) {
var fieldObj=document.forms['WebToLeads1294899000000117019'][mndFileds[i]];
if(fieldObj) {
if
(((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0) {
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) {}
}
}
try {
if($zoho) {
var
LDTuvidObj = document.forms['WebToLeads1294899000000117019']['LDTuvid'];
if(LDTuvidObj) {
LDTuvidObj.value = $zoho.salesiq.visitor.uniqueid();
}
var
firstnameObj =
document.forms['WebToLeads1294899000000117019']['First Name'];
if(firstnameObj) {
name = firstnameObj.value +' '+name;
}
$zoho.salesiq.visitor.name(name);
var
emailObj = document.forms['WebToLeads1294899000000117019']['Email'];
if(emailObj) {
email = emailObj.value;
$zoho.salesiq.visitor.email(email);
}
}
}
catch(e) {}
}
</script>
</form>
</div>
So, basically, I want to keep the look and style of the old form,
but have it send entries to Zoho CRM. Would anyone be able to help me
with this?