function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
aria_agencyaria_agency 

Javascript in Web-to-lead form

I apologize if these questions have been covered, I did a quick search and didn't return what I was looking for.

 

I've exported some HTML for my web-to-lead form.  Some of my form fields contain HTML attributes that contain calls to javascript functions.  e.g. onkeydown="formatPhoneOnEnter(this, event);"  

 

However the HTML export did not contain any external javascript files or any function definitions.  Can someone please shed some light on this? I'd like to take advantage of any client side formatting or input validation salesforce provides.

 

Additionally I have some encrypted form fields that store sensitive personal information.  I was hoping to capture this information through my web-to-lead form, however it doesn't appear Sales Force allows me to export HTML for encrypted form fields. I've already setup SSL on my site and the page where I intend to place this form is secured.

 

Thanks in advance.

Tshepo PelaeloTshepo Pelaelo
I'm also going through this.Did you find any solutions?