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
Guilherme AguirresGuilherme Aguirres 

I'm trying to create a button to a visualforce page to create a quote from the opportunity page on Salesforce1

I have a visualforce page:

<apex:page standardController="Quote">
<apex:form >
  <apex:pageBlock title="Teste">
      <apex:pageBlockSection title="Seção" columns="2">
          <apex:inputField value="{!Quote.Name}"/>
          <apex:inputField value="{!Quote.ExpirationDate}"/>
          <apex:inputField value="{!Quote.Status}"/>
          <apex:inputField value="{!Quote.Tipo__c}"/>
      </apex:pageBlockSection>
      <apex:pageBlockButtons >
          <apex:commandButton action="{!save}" value="Salvar"/>
          <apex:commandButton action="{!cancel}" value="Cancelar"/>
          <apex:commandButton action="{!edit}" value="Editar"/>
          <apex:commandButton action="{!delete}" value="Apagar"/>
      </apex:pageBlockButtons>
  </apex:pageBlock>
</apex:form>
</apex:page>

But it is not avaliable to use in a Opportunity button, just in a Quote button, this page will be used to create a quote from the opportunity page in Salesforce1, how do I this?
sancasanca
Hi ,
Why do you want to create VF page to create quote from opportunity Instead use the standard salesforce functionality .
To enable quotes follow this link : https://help.salesforce.com/articleView?id=quotes_enable.htm&type=0

Once enabled , The quote button will be displayed from oppotunity related list page .

 
Guilherme AguirresGuilherme Aguirres
Hi sanju ca,
I want to create a VF page just to use on Salesforce1, on Classic I have this button on the related list page, but I don't have a button on the action bar to create a Quote from a Opportunity on Salesforce1.