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
Dev ListingOrgDev ListingOrg 

Override standard New Quote button of Opportunity Page

Hello,

I want to call following code from visual force page. is it possible?


{!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")} result = sforce.connection.query("select id,opportunityid from Quote where id = '{!Quote.Id}'") window.top.location.href =<br> "{!URLFOR( $Action.Quote.NewQuote ,null,[clone=1,id=Quote.Id,retURL="/"&Quote.Id],true)}&oppid=" +<br> result.records.OpportunityId


Currently this code is call from Excute Javascript option with Detail page button option of Salesforce.

I want to call this from visual force page. I want to override "New Quote" button of Opporunity. ( Standard button ).