473,322 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

JavaScript and SalesForce WebtoLead Forms

Hi All,

Our client needs help creating a form that validates using JavaScript. It's easily done *except* for the fact that SalesForce creates "picklists" that have names with leading zeros. See the example:

<select id="00N30000000kf3l" title="AP ERP package" name="00N30000000kf3l">

Any typical validation form chokes on that field. How do I handle it? The following code is a sample we've been able to use, except for the leading zero issue:

http://www.elated.com/tutorials/programming/javascript/form_validation/complex_form_source.html

Thanks,

GG
Oct 19 '06 #1
3 2380
iam_clint
1,208 Expert 1GB
the page you linked has code for validating everything except i don't see any of those "special fields" there give us an example of what it needs to validate on those.
Oct 19 '06 #2
That's the JavaScript we used. If you pick a field and replace it with the snippet I provided, you can see that the script will not process a field with a name beginning with leading zeros.

Know what I mean?
Oct 19 '06 #3
iam_clint
1,208 Expert 1GB
document.getElementById('00N30000000kf3l').selecte dIndex
Oct 19 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gowhera Hussain | last post by:
Use This for Learning Only .... Do Not Try To Act Smart HACKING WITH JAVASCRIPT Dr_aMado Sun, 11 Apr 2004 16:40:13 UTC This tutorial is an overview of how javascript can be used to bypass...
1
by: lawrence | last post by:
This PHP function prints out a bunch of Javascript (as you can see). This is all part of the open source weblog software of PDS (www.publicdomainsoftware.org). We had this javascript stuff...
0
by: chaitanya02 | last post by:
I have designed a form to take input of email name, password, addres,, etc. When clicked on submite- it has to validate these values with the values of that stored in Salesforce, for the same person....
0
by: chaitanya02 | last post by:
HI all, I want to retrieve specific values from Salesforce Data base, which my company uses.And- I will need to compare those values in Salesforce, with entries in an asp form on our website....
3
by: bhanubalaji | last post by:
hi, I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA.. can any one help regarding this.. What's the wrong with my code? I am...
0
by: =?Utf-8?B?dm9vZG9vYnVkYQ==?= | last post by:
I’m trying to make a mash-up to work with Salesforce.com. I can get Silverlight 2 as a mash-up to work as long as I’m not calling any external resources like a Web Service on https. When...
0
by: Jose Barragan | last post by:
Does anyone have experience with this company that develops a software integration with SalesForce
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.