Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- 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' 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=WebToLeads2413896000001031029 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='e09e4faf2e284aa2468c13f176aa523b308f127b4720e54993895804ef8794ef'/>
- <input type='hidden' name='zc_gad' id='zc_gad' value=''/>
- <input type='text' style='display:none;' name='xmIwtLD' value='e69c7d18b17f52e726b11e2fa5a21563a0cdb4f79e16ba9313e88f239455c3ac'/>
- <input type='text' style='display:none;' name='actionType' value='TGVhZHM='/>
- <input type='text' style='display:none;' name='returnURL' value='https://www.poggesiusa.com/photo-gallery/' />
- <!-- Do not remove this code. -->
- <style>
- tr , td {
- padding:6px;
- border-spacing:0px;
- border-width:0px;
- }
- </style>
- <table style='width:600px;background-color:white;color:black'>
- <tr><td colspan='2' style='text-align:left;color:black;font-family:Arial;font-size:14px;'><strong>Quote Design Form</strong></td></tr>
- <tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:50%'>Lead Source</td><td style='width:250px;'>
- <select style='width:250px;' name='Lead Source'>
- <option value='-None-'>None</option>
- <option value='Advertisement'>Advertisement</option>
- <option value='Cold Call'>Cold Call</option>
- <option value='Cold Call from Web'>Cold Call from Web</option>
- <option value='Inbound Call'>Inbound Call</option>
- <option value='Past Customer'>Past Customer</option>
- <option value='Referral'>Referral</option>
- <option value='Online Store'>Online Store</option>
- <option value='Holiday'>Holiday</option>
- <option value='QB Cristna'>QB Cristna</option>
- <option value='Social Media'>Social Media</option>
- <option selected value='Poggesi Web Site'>Poggesi Web Site</option>
- <option value='Unosider'>Unosider</option>
- </select></td></tr>
- <tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:50%'>Lead Source Name</td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='255' name='LEADCF3' value='Custom Design Quote Form'></input></td></tr>
- <tr><td style='nowrap:nowrap;text-align:left;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:left;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:left;font-size:12px;font-family:Arial;width:200px;'>Company<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='100' name='Company' /></td></tr>
- <tr><td style='nowrap:nowrap;text-align:left;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:left;font-size:12px;font-family:Arial;width:200px;'>Phone<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;' maxlength='30' name='Phone' /></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('Company','First Name','Last Name','Email','Phone');
- var fldLangVal=new Array('Company','First Name','Last Name','Email','Phone');
- var name='';
- var email='';
- function checkMandatory() {
- for(i=0;i<mndFileds.length;i++) {
- var fieldObj=document.forms['WebToLeads2413896000001031029'][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) {}
- }
- }
- }
- </script>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement