Tell Us About Your Project


Full name
*

First
Last

Email
*


Phone
*


What inspired you to come up with this idea?
*


Describe your invention in detail.


How will your invention be used?


How long have you been working on this idea?


Best Time to Reach You

01
02
03
04
05
06
07
08
09
10
11
12
HH
:
00
30
MM
:
AMPMAM / PM

Name of Project Consultant

Submitvar isSalesIQIntegrationEnabled = false;
function zf_validateandsubmitdata(){
if(isSalesIQIntegrationEnabled){
var visitorinfo = {};
var elements = document.getElementById(“form”).elements;
for (var idx = 0; idx<elements.length;idx++) {
var inpElem = elements[idx];
var name = inpElem.getAttribute("name");
var fieldType = inpElem.getAttribute("fieldType");
if(fieldType==="1" || fieldType==="7" || fieldType==="9" || fieldType==="11"){
var invlovedinsalesiq = inpElem.getAttribute("invlovedinsalesiq");
if(fieldType==="1"){
var nameFieldInvolved = inpElem.getAttribute("nameFieldInvolved");
var phoneFieldInvolved = inpElem.getAttribute("phoneFieldInvolved");
if(invlovedinsalesiq==="true"){
if(phoneFieldInvolved){
var salesIQValue=inpElem.value;
visitorinfo.contactnumber = salesIQValue;
}if(nameFieldInvolved){
var salesIQValue=inpElem.value;
visitorinfo.name = salesIQValue;
}
}
}if(fieldType==="7"){
if(invlovedinsalesiq==="true"){
var salesIQValue=inpElem.value;
visitorinfo.name = salesIQValue;
}
}if(fieldType==="9"){
if(invlovedinsalesiq==="true"){
var salesIQValue=inpElem.value;
visitorinfo.email = salesIQValue;
}
}if(fieldType==="11"){
if(invlovedinsalesiq==="true"){
var compName = inpElem.getAttribute("compname");
var phoneFormat = inpElem.getAttribute("phoneFormat");
var salesIQValue="";
if(phoneFormat==="1"){
salesIQValue = document.getElementById("international_"+compName+"_countrycode").value;
}else{
var countryCode = document.getElementById(compName+"_countrycode").value;
var first = document.getElementById(compName+"_first").value;
var last = document.getElementById(compName+"_second").value;
salesIQValue =countryCode+first+last;
}
visitorinfo.contactnumber = salesIQValue;
}
}
}
}
parent.postMessage(JSON.stringify({ type: 'zoho.salesiq.apimessage', visitor: visitorinfo } ), '*');// No I18N
}
}

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s