1

I am wanting to override the Select button on the Product Selection page for a quote, where you add QuoteLineItem's with a Visualforce page. Which you get to by clicking the Add Line Item button on the Quote Line Items related list on a Quote detail view.

Add line item button

And the button I would like to override with a VF page:

enter image description here

I have poked around for a bit trying to find this button somewhere in setup, but haven't seen it.

I know I can override the Add Line Item button, but I don't want to recreate the first page which works for our business flow, just so I can have that button send to another VF page.

1 Answer 1

1

Similarly to OpportunityLineItem, if you want to change the Select button, you need to override the entire Add Line Item button. It is not bound to any action on its own.

First create a Visualforce Page on the Quote object.

<apex:page standardController="Quote">
    <!--content-->
</apex:page>

Now, if you go to Customize > Quotes > Quote Line Items > Buttons and Links. Select Add Line Item. Edit it to reference the Visualforce Page created above.

2
  • Yes, but this isn't what I was asking. I want to override the Select button on the following page without overriding the Add Line Item button. Which I don't think is possibly without overriding the first button, but I figured I would ask before I wrote two VF pages instead of one. Mar 4, 2016 at 15:33
  • @JesseMilburn You have to override the whole Add Line Item action if you want to modify that Select.
    – Adrian Larson
    Mar 4, 2016 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .