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
kittu9kittu9 

How to validate whether values given or not for Opportunity while coverting from Lead page

1) When am clicking on "Convert" button in the Lead page. It is opening one standard page with some fields like Opportunity,Account look up and some other details. In that page again it is displaying "Convert" button. when we click on that button it will create one record in "Account" and "Opportunity" object.

 

2) While inserting record into Opportunity Object i want to validate some custom fields values entered or not. If they are not entered want to display error message and allow them to fill those custom fields values.

 

In Opportunity object i have some custom fields like Amount,Marketing type, Marketing information and one more fields while inserting record into opportunity at the time of converting lead to Opportunity want to check these values. And want to allow the values for their fields.

 

3) How can i achiece this functionality? can any provide ideas on this. Thanks in advance.

cl0s3rcl0s3r

Customize:

 Lead:

  Fields:

   <Map Lead Fields>

kittu9kittu9

Instead of displaying the standard Page can we create one custom visual force page and displaying this page instead of standard Lead page adding the 4 custom fields.

 

In this custom vf page have to create one button label as "convert" whn clicking validating fields in vf page and if entered insert records into Account,Opportunity & contact object like standard convert will this works or not???????????? (In VF & Apex controller) If yes pls provide steps

cl0s3rcl0s3r
Yes, it can be done but what is it really buying you? just because
you can doesn't mean you should. If you can perform it in the
declarative do it, you don't have to worry about code coverage or
governor limits.