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
Mike McGeoyMike McGeoy 

How do I pull system date with Web to lead?

We have a Web-to-Lead form that currently has a user enter a date which maps to a field on the Lead. However I want to take off the user entered date on the web form and just have the system date (date only) be pulled into the same Lead field.

This is what is in the current web to lead form:
<span class="dateInput dateOnlyInput"><input class="required valid-date" id="00N90000009aVvP" type="text" name="00N90000009aVvP" placeholder="MM/DD/YYYY" size="12" /></span>

I'm thinking this is pretty easily done.

Thanks
Mike
 
PratikPratik (Salesforce Developers) 
Hi Mike,

You can remove the field mapping and also remove the ablove mentioned code from the web to lead form. Salesforce will auto populate the system date as date of creation.

Thanks,
Pratik