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
javierjimenezjavierjimenez 

Web to lead from two pages!!

Hello everyone!!

 

I have the Web-to-Lead functionalityin two different pages!

 

I have a field in Lead; Type

 

How can I do a trigger to say; If this lead comes from page1, then the type=1, but if it comes from the page2, then the type=2????

 

Thanks in advance!!

jkucerajkucera

Hi Javier,

 

The easiest way is to directly write to that Type field using a hidden field on the web to lead page:


<input type="hidden" name="Type__c" value="1" />

 No triggers needed.