Activity Forums Salesforce® Discussions Auto Populate page of Opportunity Record on Custom Button

  • Auto Populate page of Opportunity Record on Custom Button

  • Ajit

    April 14, 2016 at 7:57 am

    Need to create a button on  Opportunity object and when I click on the button  it should open a new  page of opprotunity record and some fields are auto populated when the page opens.

  • Himanshu

    April 14, 2016 at 7:59 am

    Hi Ajit,

    Create a a javascript button and use this link."/006/e?opp11=Prospecting");

    the above url is for creating a new Opportunity - so copy your org url by clicking on new opportunity in your org and make the url same as mine here opp11 is field id of stage name in opportunity if you want more records to be populated add the other fields id by puting '&' in the url like this"/006/e?opp11=Prospecting&opp9=123"); here opp9 is Amount to get the field id's open the below link :

    use links to get field Id's :

  • Parul

    September 17, 2018 at 11:58 am


    For this, you can create a visualforce page and use it on the custom button on Opportunity, and in the controller of that VF page, you can get all the values you want on the new page on click of button.



Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos