• Hemalatha Paruchuri
  • NEWBIE
  • 15 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 23
    Questions
  • 29
    Replies
I have 2 objects bp_c and mp_c.on mp_c lookup relation to bp_c.
bp_ c have (multiselect picklist) field called grouped field values like Medical,Dental,vision.
mp_c have (picklist) field medical values like eligible,waved,N/A
mp_c have (picklist) field Dental values like eligible,waved,N/A.

when ever i craeted or updated in bp__c  multiselect picklist value medical need to be changed values in mp__c medical defaultly N/A
when ever i craeted or updated in bp__c  multiselect picklist value medical need to be changed values in mp__c Dental  defaultly N/A
Hi,

I have a custom object My__order__c and lookup to Account(Customer__c). In my order object have a field like Transaction ID.
In my order object have so many orders that means one account have multiple orders ..based on that they have Transaction ID and one more field is like net total__c.
my question is i have to display customer name,Transion id,net total but in that customer name i got customer id..so how can i get custome name(Account name).

Visualforce page:

<apex:page standardController="my_order__c" sidebar="false" extensions="Totalorders">
 <apex:form >
 <apex:pageBlock >
 
 <apex:pageBlockTable value="{!results}" var="r">
  <apex:column value="{!r['Customer__c']}">

  <apex:facet name="header">CustomerID</apex:facet>

 </apex:column>
 


   <apex:column value="{!r['Transaction_ID__c']}" >
<apex:facet name="header">Transaction ID</apex:facet>
   </apex:column>
                        
     <apex:column value="{!r['Total']}">
      <apex:facet name="header">Net Total </apex:facet>
    </apex:column>
                                    
  </apex:pageBlockTable>
 
 </apex:pageBlock>
 
 </apex:form>
 
 </apex:page>


Extension :

public with sharing class Totalorders {

  public Totalorders(ApexPages.StandardController controller) {
 
 }
     public AggregateResult[] results {
        get {
            return [select Transaction_ID__c,Customer__c,Sum(Net_Total__c)Total From my_order__c GROUP BY Rollup(Transaction_ID__c,Customer__c)];
        }
    }

 
 }
{!REQUIRESCRIPT("/soap/ajax/37.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/37.0/apex.js")}

var accnt = new sforce.SObject("Account");
var recType=sforce.connection.query("SELECT name, id FROM RecordType" );
//alert(recType);
var records = recType.getArray("records");
//alert(records);
accnt.Name='{!My_Leads__c.Company__c}';
if(accnt.Name !="")
{
accnt.RecordTypeId = records[0].Id;
//alert(records[0].Id);

accnt.Id = '{!Account.Id}';
accnt.Name = prompt('','{!My_Leads__c.Company__c}');
accnt.OwnerId='{!My_Leads__c.OwnerId}';

var result = sforce.connection.create([accnt]);
if(result[0].getBoolean("success"))
{
alert('Account created successfully');

}
var cnt= new sforce.SObject("Contact");
cnt.Id = '{!Contact.Id}';
cnt.OwnerId='{!My_Leads__c.OwnerId}';
cnt.AccountId=result[0].id;
cnt.lastName = prompt('','{!My_Leads__c.Lead_Name__c}');

var result = sforce.connection.create([cnt]);
 if(result[0].getBoolean("success"))
{
alert('contact created successfully');
window.location.reload();

}

else{
  alert('Error : '+result);
}
}
else
{
accnt.RecordTypeId=records[1].Id;
//alert(records[1].Id);
accnt.Id = '{!Account.Id}';
accnt.LastName = prompt('','{!My_Leads__c.Lead_Name__c}');
accnt.OwnerId='{!My_Leads__c.OwnerId}';

var result = sforce.connection.create([accnt]);
if(result[0].getBoolean("success"))
{
alert('Account created successfully');

}
else
{
 alert('Error : '+result);
}
}
Hi,

I have  a custom object like objectA(like lead) i need to conver lead account and contact using button ..how it is possible
https://c.ap1.content.force.com/servlet/servlet.ImageServer?id=0159000000CZirg&oid=00D90000000yED8&lastMod=1464239905000
How to send Salesforce images in professional edition  to external to an app ipad through java script .we have no acess to write classes in professional edition?
Hi,

How to intergration  between salesforce to quckbook(online) through cloud cart conncetor .

Thanks in advance
Hi,


How to connect salesforce professional edition to square app? it is possible.
Hi,

Authorize.net is available for integration with salesforce professional edition? or not 
 
We have a custom object attendee/speaker. and it has lookup on to contact . i want populate  account name automatically how to do this

<apex:page standardController="Attendee_Speaker_Conferences__c" extensions="Attendeespeakcc">

<apex:form >
<apex:pageBlock >
<apex:pageBlockButtons >

<apex:commandButton action="{!Save}" value="Save"/>


<apex:commandbutton value="Cancel" action="{!Cancel}"/>
</apex:pageBlockButtons>

<apex:pageBlock title="Attendee/Speaker Conferences Edit">
<apex:pageblockSection columns="2">
<apex:inputField value="{!Attendee_Speaker_Conferences__c.Contact__c}"/>
<apex:inputField value="{!Attendee_Speaker_Conferences__c.CurrencyIsoCode}"/>

<apex:inputField value="{!Attendee_Speaker_Conferences__c.Opportunity__c}"/>
<apex:outputField value="{!Attendee_Speaker_Conferences__c.Email__c}"/>
<apex:inputField value="{!Attendee_Speaker_Conferences__c.Feedback__c}"/>
<apex:outputField value="{!Attendee_Speaker_Conferences__c.contact__r.account.Id}"/>

<apex:inputField value="{!Attendee_Speaker_Conferences__c.Role__c}"/>






</apex:pageblockSection>

</apex:pageBlock>



</apex:pageBlock>



</apex:form>
 
</apex:page>



public with sharing class Attendeespeakcc {
 private ApexPages.StandardController sc;
    public Attendeespeakcc(ApexPages.StandardController sc) {
     this.sc = sc;
        
    }
    
      public PageReference save() {
    
        PageReference detailPage = sc.save();
        if (detailPage != null) {
            // Construct URL of edit page or whatever other page you want
            PageReference editPage = new PageReference('/apex/Attendeespeakerconferenceoverride');
            return detailPage;
        } else {
            return detailPage;
        }
    }
    public PageReference cancel() {
    
        PageReference detailPage = sc.cancel();
        if (detailPage != null) {
            // Construct URL of edit page or whatever other page you want
            PageReference editPage = new PageReference('https://cs21.salesforce.com/a09/o');
            return detailPage;
        } else {
            return detailPage;
        }
    }
    }


 
Hi,


How to put background image image in visualforce page
<apex:page controller="SpeakerFeedbackcc" showHeader="false" sidebar="false" >
<apex:outputpanel >
     <apex:actionstatus id="actStatusId1">
       <apex:facet name="start">
      <div class="waitingSearchDiv" id="el_loading" style="background-color: #DCD6D6; height: 100%;opacity:0.65;width:100%;">
      <div class="waitingHolder" style="top: 74.2px; width: 91px;">
        <img class="waitingImage" src="/img/loading.gif"     title="Please Wait..." />
        <span class="waitingDescription">Processing.....</span>
         </div>
          </div>
      </apex:facet>
 </apex:actionstatus>
    </apex:outputpanel>
 
<style>
td
{
background-color:#CCCCFF;
}
</style>
 <apex:form >
      <apex:image url="{!imageURL}">
    </apex:image>     
    <apex:sectionHeader subtitle="please Submit your Feedback"/>

    <h1 style="text-align:center;color:#0000FF;margin-left:375px;">We have created your personalized profile in eMedEvents.com. Please feel free to add more information </h1><br/> <br/>
   <h2 style="text-align:center;margin-left:400px;">We are collecting the following information as part of the professional speaker blog campaign</h2>
   
     
     

    <apex:pageblock >
 
    <table style="auto; margin-left:50px; margin-top:50px;">
     <tr>
                        <td>
                            <b>1. Please elaborate on the topic presented by you in the conference</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp1" value="{!iFR.Please_elaborate_on_the_topic_presented__c}" style="width:360px; height:50px" />
                        </td>
                    </tr>  
                     <tr>
                        <td width="65%">
                            <b>2.Do you have any you-tube links or news links related to your session</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp2" value="{!iFR.Do_you_have_any_you_tube_links_or_news_l__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>3.  Would you like to present in other countries</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp3" value="{!iFR.Would_you_like_to_present_in_other_count__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>4.What are the beneficial aspect/novel innovations pertaining to your topic</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp4" value="{!iFR.What_are_the_beneficial_aspect_novel_inn__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>5.Were there any other speaker(s) involved in the session</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp5" value="{!iFR.Were_there_any_other_speaker_s_involved__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td width="30%">
                            <b>&nbsp;&nbsp;  </b>
                        </td>
                        <td width="70%">
   <apex:commandButton value="Submit your Feedback" action="{!submitFeedBack}" status="actStatusId1" />
                       </td>
                    </tr>     
    
   </table>
   
   </apex:pageblock>
    </apex:form>

</apex:page>


public class SpeakerFeedbackcc {
 public String imageURL{get;set;}
     Public string rating{get;set;}
     public Speaker_Feedback__c iFR{get;set;}
public SpeakerFeedbackcc (ApexPages.StandardController controller){
  }
  public SpeakerFeedbackcc ()
   {
   iFR= new Speaker_Feedback__c ();
 
      imageURL='/servlet/servlet.FileDownload?file=';
    List< document > documentList=[select name from document where
                                    Name='eMED events'];
   
    if(documentList.size()>0)
    {
      imageURL=imageURL+documentList[0].id;
    }
  }
   
  public pageReference submitFeedBack(){
      system.debug('total values is ===>'+iFR);
     
 
      insert iFR;
      pageReference pf = new pageReference ('/apex/FeedbackThanksPage');
      pf.setRedirect(true);
     return pf ;
    }
}



 
Here Account Name called organizers .in organizers(account) person account enabled. in person account we have a like picklist=speakers,attendee. when ever we create opportunity ,contact roles also display in contact roles (speakers and attendee display),based on the speakers and attendee how many opportunities are created using trigger.

Thanks In advance
Its my code,
<apex:page standardController="opportunity" extensions="Testopportunitysaveoverridecls" >
<apex:form >
<apex:pageBlock mode="inlineEdit">
<apex:pageBlockButtons >
<apex:commandButton value="Edit" action="{!Edit}"/>
<apex:commandButton value="Delete" action="{!Delete}"/>

</apex:pageBlockButtons>
<apex:pageblock title="My Content">
<apex:pageblockSection title="Opportunity Information">
<apex:outputField value="{!Opportunity.ownerId}"/>
<apex:outputField value="{!opportunity.AccountId}"/>
<apex:outputField value="{!opportunity.Name}"/>
<apex:outputField value="{!opportunity.Stagename}"/>
<apex:outputField value="{!opportunity.closedate}"/>
</apex:pageblockSection>
</apex:pageblock>
<apex:pageblocksection title="Select Products">
<apex:outputfield value="{!Opportunity.Room__c}"/>
<apex:outputfield value="{!Opportunity.Total_In_Units__c}"/>
<apex:outputfield value="{!Opportunity.Product__c }"/>
<apex:outputfield value="{!Opportunity.Product__r.UOM__c}"/>
<apex:outputfield value="{!Opportunity.Length__c}"/>
<apex:outputfield value="{!Opportunity.Width__c}"/>
<apex:outputfield value="{!Opportunity.Quantity__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.Cleaning_cost__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.FS_Cost__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
<apex:relatedList list="Quotes"/>
</apex:page>



 THIS controller
public with sharing class Testopportunitysaveoverridecls
{

private ApexPages.StandardController sc;
    public Testopportunitysaveoverridecls(ApexPages.StandardController sc) {

        this.sc = sc;
    }
    public PageReference save() {
    
        PageReference detailPage = sc.edit();
        if (detailPage != null) {
            // Construct URL of edit page or whatever other page you want
            PageReference editPage = new PageReference('/apex/TestOpportunity');
            return editPage;
        } else {
            return detailPage;
        }
}
}



 
This my code
trigger Casetimetrigger on Case (before insert) {
    
  list<Case>caslist1 = [Select Id From Case Where createdDate = Today];
   for(Case cac:trigger.new){
   system.debug('before trigger.cac==>'+cac);
    system.debug(system.now());
       if(cac.Id!=null){
           if(cac.Current_Time__c  = CreatedDate) {
Time_Slice__c : = CreatedDate

}else 
{ Current_Time__c > CreatedDate
    }
 Time_Slice__c = CreatedDate

    }
  }   
Please see below code
<apex:page standardcontroller="Opportunity" extensions="TestOpportunityCLS">
<apex:form >
<apex:pageblock >
<apex:pageblockButtons >

<apex:commandButton value="Save" action="{!save}"/>

<apex:commandbutton value="Edit" action="{!Edit}"/>
<apex:commandbutton value="Cancel" action="{!Cancel}"/>
</apex:pageblockButtons>
<apex:pageblock title="Opportunity Edit" >
<apex:pageblockSection title="Opportunity Information">
<apex:outputField value="{!Opportunity.ownerId}"/>
<apex:inputField value="{!opportunity.AccountId}"/>
<apex:inputField value="{!opportunity.Name}"/>
<apex:inputField value="{!opportunity.Stagename}"/>
<apex:inputField value="{!opportunity.closedate}"/>
</apex:pageblockSection>
</apex:pageblock>
<apex:pageblocksection title="Select Products">
<apex:inputfield value="{!Opportunity.Pricebook2.Room__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.Total_in_Units__c}"/>
<apex:inputfield value="{!Opportunity.Product__c }"/>
<apex:outputfield value="{!Opportunity.Product__r.UOM__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Length__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Width__c}"/>

<apex:outputfield value="{!Opportunity.Product__r.Cleaning_cost__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.FS_Cost__c}"/>




</apex:pageblocksection>
</apex:pageblock>

  
</apex:form>


</apex:page>
if u want delete my custom object record (estimate) send notofication to all profiles
I have a custom object like estimate ..if i delete a estimate object send notificatios foe all profiles
<apex:page controller="TicketGenerateController">
    <style>
        .body{
            overflow-y: auto;
            height: 100px;
        }
    </style>
    <apex:form >
   
        <apex:pageBlock >
         
            <apex:pageMessages id="pgMsg"/> 
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Edit" onclick="window.location.href='/apex/TicketGenerate?id={!objPreviewTicket.Id}';return false;"/>
                <apex:commandButton value="Send Email" action="{!SendEmail}" oncomplete="redirectPage();" rerender="pgMsg"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
        <apex:pageBlock >
            <apex:iframe src="/apex/TicketPDFTemplate?id={!objPreviewTicket.Id}" />
        </apex:pageBlock>
    </apex:form>
    <script>
        function redirectPage(){ 
            alert("Email Sent Successfully");
            window.location.href = '/apex/TicketGenerateView?id={!objPreviewTicket.Id}';
           
        }
    </script>
</apex:page>
Hi,

How to intergration  between salesforce to quckbook(online) through cloud cart conncetor .

Thanks in advance
I have 2 objects bp_c and mp_c.on mp_c lookup relation to bp_c.
bp_ c have (multiselect picklist) field called grouped field values like Medical,Dental,vision.
mp_c have (picklist) field medical values like eligible,waved,N/A
mp_c have (picklist) field Dental values like eligible,waved,N/A.

when ever i craeted or updated in bp__c  multiselect picklist value medical need to be changed values in mp__c medical defaultly N/A
when ever i craeted or updated in bp__c  multiselect picklist value medical need to be changed values in mp__c Dental  defaultly N/A
{!REQUIRESCRIPT("/soap/ajax/37.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/37.0/apex.js")}

var accnt = new sforce.SObject("Account");
var recType=sforce.connection.query("SELECT name, id FROM RecordType" );
//alert(recType);
var records = recType.getArray("records");
//alert(records);
accnt.Name='{!My_Leads__c.Company__c}';
if(accnt.Name !="")
{
accnt.RecordTypeId = records[0].Id;
//alert(records[0].Id);

accnt.Id = '{!Account.Id}';
accnt.Name = prompt('','{!My_Leads__c.Company__c}');
accnt.OwnerId='{!My_Leads__c.OwnerId}';

var result = sforce.connection.create([accnt]);
if(result[0].getBoolean("success"))
{
alert('Account created successfully');

}
var cnt= new sforce.SObject("Contact");
cnt.Id = '{!Contact.Id}';
cnt.OwnerId='{!My_Leads__c.OwnerId}';
cnt.AccountId=result[0].id;
cnt.lastName = prompt('','{!My_Leads__c.Lead_Name__c}');

var result = sforce.connection.create([cnt]);
 if(result[0].getBoolean("success"))
{
alert('contact created successfully');
window.location.reload();

}

else{
  alert('Error : '+result);
}
}
else
{
accnt.RecordTypeId=records[1].Id;
//alert(records[1].Id);
accnt.Id = '{!Account.Id}';
accnt.LastName = prompt('','{!My_Leads__c.Lead_Name__c}');
accnt.OwnerId='{!My_Leads__c.OwnerId}';

var result = sforce.connection.create([accnt]);
if(result[0].getBoolean("success"))
{
alert('Account created successfully');

}
else
{
 alert('Error : '+result);
}
}
Hi,

I have  a custom object like objectA(like lead) i need to conver lead account and contact using button ..how it is possible
https://c.ap1.content.force.com/servlet/servlet.ImageServer?id=0159000000CZirg&oid=00D90000000yED8&lastMod=1464239905000
Hi,


How to put background image image in visualforce page
<apex:page controller="SpeakerFeedbackcc" showHeader="false" sidebar="false" >
<apex:outputpanel >
     <apex:actionstatus id="actStatusId1">
       <apex:facet name="start">
      <div class="waitingSearchDiv" id="el_loading" style="background-color: #DCD6D6; height: 100%;opacity:0.65;width:100%;">
      <div class="waitingHolder" style="top: 74.2px; width: 91px;">
        <img class="waitingImage" src="/img/loading.gif"     title="Please Wait..." />
        <span class="waitingDescription">Processing.....</span>
         </div>
          </div>
      </apex:facet>
 </apex:actionstatus>
    </apex:outputpanel>
 
<style>
td
{
background-color:#CCCCFF;
}
</style>
 <apex:form >
      <apex:image url="{!imageURL}">
    </apex:image>     
    <apex:sectionHeader subtitle="please Submit your Feedback"/>

    <h1 style="text-align:center;color:#0000FF;margin-left:375px;">We have created your personalized profile in eMedEvents.com. Please feel free to add more information </h1><br/> <br/>
   <h2 style="text-align:center;margin-left:400px;">We are collecting the following information as part of the professional speaker blog campaign</h2>
   
     
     

    <apex:pageblock >
 
    <table style="auto; margin-left:50px; margin-top:50px;">
     <tr>
                        <td>
                            <b>1. Please elaborate on the topic presented by you in the conference</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp1" value="{!iFR.Please_elaborate_on_the_topic_presented__c}" style="width:360px; height:50px" />
                        </td>
                    </tr>  
                     <tr>
                        <td width="65%">
                            <b>2.Do you have any you-tube links or news links related to your session</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp2" value="{!iFR.Do_you_have_any_you_tube_links_or_news_l__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>3.  Would you like to present in other countries</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp3" value="{!iFR.Would_you_like_to_present_in_other_count__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>4.What are the beneficial aspect/novel innovations pertaining to your topic</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp4" value="{!iFR.What_are_the_beneficial_aspect_novel_inn__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td>
                            <b>5.Were there any other speaker(s) involved in the session</b>
                        </td>    
                        <td >
                            <apex:inputField id="inp5" value="{!iFR.Were_there_any_other_speaker_s_involved__c}" style="width:360px; height:50px"/>
                        </td>
                    </tr>  
                     <tr>
                        <td width="30%">
                            <b>&nbsp;&nbsp;  </b>
                        </td>
                        <td width="70%">
   <apex:commandButton value="Submit your Feedback" action="{!submitFeedBack}" status="actStatusId1" />
                       </td>
                    </tr>     
    
   </table>
   
   </apex:pageblock>
    </apex:form>

</apex:page>


public class SpeakerFeedbackcc {
 public String imageURL{get;set;}
     Public string rating{get;set;}
     public Speaker_Feedback__c iFR{get;set;}
public SpeakerFeedbackcc (ApexPages.StandardController controller){
  }
  public SpeakerFeedbackcc ()
   {
   iFR= new Speaker_Feedback__c ();
 
      imageURL='/servlet/servlet.FileDownload?file=';
    List< document > documentList=[select name from document where
                                    Name='eMED events'];
   
    if(documentList.size()>0)
    {
      imageURL=imageURL+documentList[0].id;
    }
  }
   
  public pageReference submitFeedBack(){
      system.debug('total values is ===>'+iFR);
     
 
      insert iFR;
      pageReference pf = new pageReference ('/apex/FeedbackThanksPage');
      pf.setRedirect(true);
     return pf ;
    }
}



 
Here Account Name called organizers .in organizers(account) person account enabled. in person account we have a like picklist=speakers,attendee. when ever we create opportunity ,contact roles also display in contact roles (speakers and attendee display),based on the speakers and attendee how many opportunities are created using trigger.

Thanks In advance
Please see below code
<apex:page standardcontroller="Opportunity" extensions="TestOpportunityCLS">
<apex:form >
<apex:pageblock >
<apex:pageblockButtons >

<apex:commandButton value="Save" action="{!save}"/>

<apex:commandbutton value="Edit" action="{!Edit}"/>
<apex:commandbutton value="Cancel" action="{!Cancel}"/>
</apex:pageblockButtons>
<apex:pageblock title="Opportunity Edit" >
<apex:pageblockSection title="Opportunity Information">
<apex:outputField value="{!Opportunity.ownerId}"/>
<apex:inputField value="{!opportunity.AccountId}"/>
<apex:inputField value="{!opportunity.Name}"/>
<apex:inputField value="{!opportunity.Stagename}"/>
<apex:inputField value="{!opportunity.closedate}"/>
</apex:pageblockSection>
</apex:pageblock>
<apex:pageblocksection title="Select Products">
<apex:inputfield value="{!Opportunity.Pricebook2.Room__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.Total_in_Units__c}"/>
<apex:inputfield value="{!Opportunity.Product__c }"/>
<apex:outputfield value="{!Opportunity.Product__r.UOM__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Length__c}"/>
<apex:inputfield value="{!Opportunity.Product__r.Width__c}"/>

<apex:outputfield value="{!Opportunity.Product__r.Cleaning_cost__c}"/>
<apex:outputfield value="{!Opportunity.Product__r.FS_Cost__c}"/>




</apex:pageblocksection>
</apex:pageblock>

  
</apex:form>


</apex:page>

Hi, I'm trying to create a custom button to convert leads into accounts, but NOT contacts.

 

Is there anyway to do this? I don't know how to create Salesforce buttons at all.