You need to sign in to do that
Don't have an account?
JMcLeodFEWA
Requiring Fields on Server or Client Side on Web2LeadForms
Has anyone successfully figured out how to require and notify the user completing the web 2 lead form that they haven't field out required fields? Or has anyone written a code that will first check to see if the fields are filled out and then once the data is validated then send (post) the data to the salesforce servlet?
I found a sample form i can use to make my web 2 lead forms required and have the message post back to form saying the required info hasn't been submitted, but does anyone know how to then make it post to SF?
I guess what im looking for is someone that has done this, and then wouldn't mind sharing the code with me so i can get it up and running for my org(a template of code i could modify for my org) . Any information would be greatly appreciated.
Thanks,
JMcLeod @ FEWA
then in the onsubmit callback for the form, the javascript checks that the required fields are filled in and halt the submit ( return false) if info is missing, notifying the user in the process.
here is a sample to try
http://javascript.internet.com/forms/required-fields.html