My web form required fields are not working
Our form was working for some time and now it will not validate the
required fields. In other words, you can just click submit and the form
goes through.
Here is the source code. Notice the word Mandatory is spelled
wrong. Not sure if that is an issue. We actually corrected it in our
code to see if that fixed it and it did not.
<div id='crmWebToEntityForm' align='center'><META
HTTP-EQUIV ='content-type' CONTENT='text/html;charset = UTF-8'>
<form action='https://crm.zoho.com/crm/WebToLeadForm'
name=WebToLeads860326000000064001 method='POST'
onSubmit='javascript:document.charset="UTF-8"; return
checkMandatery()' accept-charset='UTF-8'> <input
type='text' style='display:none;' name='xnQsjsdp'
value='wfU19@tKjulthYo@kRl79w$$'/> <input type='hidden'
name='zc_gad' id='zc_gad' value=''/> <input type='text'
style='display:none;' name='xmIwtLD'
value='kNwTZYpnvQZGDX@tVLTfIG-@B6-MHnNR'/> <input
type='text' style='display:none;' name='actionType'
value='TGVhZHM='/> <input type='text' style='display:none;'
name='returnURL'
value='http://www.brochure-design-service.com/'
/> <br><table border=0 cellspacing=0 cellpadding='6'
width=600
style='background-color:white;color:black'><tr><td
colspan='2' align='left'
style='color:black;font-family:Arial;font-size:14px;'><strong>New
Toolkits</strong></td></tr>
<br><tr><td><span owrap='nowrap'
style='font-size:12px;font-family:Arial;width:200px;line-height:
22px;'>First Name<span
style='color:red;'>*</span></span><br><input
type='text' maxlength='40' style='width:250px;' name='First
Name'></input></td></tr><tr><td><span
owrap='nowrap'
style='font-size:12px;font-family:Arial;width:200px;line-height:
22px;'>Last Name<span
style='color:red;'>*</span></span><br><input
type='text' maxlength='80' style='width:250px;' name='Last
Name'></input></td></tr><tr><td><span
owrap='nowrap'
style='font-size:12px;font-family:Arial;width:200px;line-height:
22px;'>Email<span
style='color:red;'>*</span></span><br><input
type='text' maxlength='100' style='width:250px;'
name='Email'></input></td></tr><tr><td><span
owrap='nowrap'
style='font-size:12px;font-family:Arial;width:200px;line-height:
22px;'>Company</span><br><input type='text'
maxlength='100' style='width:250px;'
name='Company'></input></td></tr><tr><td
colspan='2'style='padding-top: 15px;' ><input
style='font-size:12px;color:black' type='submit' value='Get
Catalog' /> <input type='reset'
style='font-size:12px;color:black' value='Reset' />
</td></tr></table><script> var mndFileds=new
Array('First Name','Last Name','Email');var fldLangVal=new
Array('First Name','Last Name','Email');function
reloadImg(){if(document.getElementById('imgid').src.indexOf('&d')
!== -1
){document.getElementById('imgid').src=document.getElementById('imgid').src.substring(0,document.getElementById('imgid').src.indexOf('&d'))+'&d'+new
Date().getTime();}else{document.getElementById('imgid').src =
document.getElementById('imgid').src+'&d'+new
Date().getTime();}}function
checkMandatery(){for(i=0;i<mndFileds.length;i++){ var
fieldObj=document.forms['WebToLeads860326000000064001'][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;}}}}}</script> </form></div>
Moderation Update:
The primary reason behind the submissions through webform not coming into CRM is when the mandatory components of the script from CRM are disturbed when embedding to the website. We want to inform you that it is not an issue. Therefore, if you face the challenge of submissions from the webform not coming in, please feel free to start a new post or reach our support. We will help sort it out.
Thank you.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Focus Group Webinar - Streamline Record Creation with Wizards
Hi there, With all the time your users spend on record creation, do you feel like they have the most seamless experience while doing it? For different types of records or those with a LOT of fields, do your users spend time navigating to enter data repeatedly?
Notes and Attachments visibility can now be restricted based on profiles
Dear All, We hope you're well! We are here with a quick update about Notes and Attachments profile permissions. In the past, a record's Notes and Attachments were visible by default to all users with record access. However, as notes and attachments can
Identify and prioritize profitable deals: Zoho CRM Forecasts help users focus on revenue-driving opportunities
Post moderated on: 7th November: Release update: This feature is now available for users in all DCs. Dear Customers, We hope you're well! At any given time, a sales rep handles multiple deals, each progressing at its own pace. But not all deals will succeed—some
Gain control over record sharing with portal users through our new enhancement: criteria-based data exposure
Dear Customers, We hope you're well! Portals is a self-service avenue through which your clients can access and manage their direct and related data in Zoho CRM. This empowers them to be more independent and enables them to experience a sense of transparency
Context and convenience just got better with Zia's email intelligence
Dear Customers, We hope you're well! We are in 2024, and email as a tool is only getting more powerful each day. While it enables seamless daily correspondences, we are here with a set of abilities that will enhance your user experience and save several
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.