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
Victor Mitra 27Victor Mitra 27 

Make Opportunity field not required during lead conversion but required when field is blank on record update

Please help me on this urgently I have a field say "X__c" which is required on Opportunity Object only But during lead conversion (since this field is not present in leads and not required as well), it is preventing lead conversion to Opportunity. How do I make the field not required during lead conversion(so that no error is thrown at that time),but also make it a required field at the same time when this is blank when we are filling up rest of the details of the converted opportunity and saving the record??
ANUTEJANUTEJ (Salesforce Developers) 
Hi Victor,

Can you check if you can make use of a validation rule instead of checking the required check box?

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Victor Mitra 27Victor Mitra 27
Tried the same,results were the same