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

Lead Source URL - web to Lead



I have a requirement where i need to populate Lead source field based on the URL of website from which Lead was generated. Please let me know if there is a way if we can get that URL?

I know one way of identifying Lead Source is adding hidden field in the Web to Lead form page.

Please suggest.





AFAIK you can't influence the creation of the lead based on the request, as that is all handled by a standard Salesforce servlet.  If it were me, I'd look at putting the URL of that site into the form via javascript, if that's an option.


ok. I also thought the same as it calls one Salesforce Servlet. In that case solution is to have hidden field in the form which will identify the source.