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
dnakonidnakoni 

Lead required fields

I have the following problem:

 

LastName is a required field on a Lead. Is there a way to change that? I have a requirement stating that Last Name should be optional, but no way to change it. Any ideas?

 

Thank you.

Best Answer chosen by Admin (Salesforce Developers) 
jkucerajkucera

Web to lead creates leads that ignores validation rules such as required fields, but there is not another way to ignore required fields.

All Answers

jkucerajkucera

Web to lead creates leads that ignores validation rules such as required fields, but there is not another way to ignore required fields.

This was selected as the best answer
debikendebiken

I have a similar problem with the company name field, we don't always have that as some of our leads are just individual consumers.  Have you found any work around for this?  I guess we could create a trigger that enters "Not Provided" in that field as in a web-to-lead that is blank.  Looking for any other suggestions!

Thanks-

jkucerajkucera

I think a default value of "Not Provided" is the best workaround using either a workflow rule or a trigger.