Create custom buttons and links to integrate Salesforce data with external URLs, applications, your company’s intranet, or other back-end office systems.

learn more… | top users | synonyms

0
votes
0answers
10 views

Overwrite standard button with custom one on Quote's pdf

Can we overwrite a standard button with a custom one on Quote's PDF? There are three buttons available on PDF- "Save to Quote", "Save and Email Quote" and "Cancel". I need to replace standard "Save ...
0
votes
1answer
29 views

Button for email template and recipient

I have created a custom button(like send an email function) to define the email template and the recipient email address. Behavior is set to execute Java, content source is OnClick Java. Code is ` ...
2
votes
1answer
23 views

AJAX Toolkit API Version Number Maintenance in Custom Button Javascript

Is there a way to access the following string "/soap/ajax/33.0/connection.js" in {!requireScript("/soap/ajax/33.0/connection.js")} by using custom labels in custom buttons? So that whenever there is ...
0
votes
1answer
20 views

how to open the approval/rejection page w/ custom javascript button

How to I open the approval/rejection page for a record with a javascript button? {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} ...
1
vote
2answers
27 views

Control Finish Location for a Flow

My organization has a custom button on the Opportunity which calls a Flow to create the Opportunity. The code for the button is as follows: ...
0
votes
0answers
17 views

Web services calls in javascript button

I have a custom button that runs a web service call for an Apex class that makes a SOAP call to an external application. The problem is that this process is executed on the main thread and ends up ...
0
votes
0answers
19 views

Pass ID from detail page to a VF page

I have created a detail page button of Custom source as URL that has below URL /apex/ComplianceIncidentPublish?Id={!Compliance_Incident_abv__c.Id} That is unable to get hold of ID in the VF page. ...
2
votes
1answer
19 views

List button to be used in detail page button

I have a List Button on a custom object. I need to use that button in that object as detail page button. Please find the VF page that List button calls here. Page: <apex:page ...
0
votes
0answers
12 views

Leads Find duplicates custom button

I need to add a few fields to the find duplicates button on the leads, is there an easy way to do this? I looked around and saw that I can hack the url, I am just not sure where to start with, I have ...
0
votes
0answers
9 views

Find Duplicate Custom Button (for cases)

We are launchng a new program to our business whereby homeowners (leads) can submit a claim against a company we work with (accounts). We built a landing page that when the form is filled out, it ...
1
vote
0answers
21 views

Custom Label as Master Lable

I'm trying to find a way to make a button label dynamic and I couldn't find any other way than Custom Label. The only issue is I don't know how to make the MasterLabel to pick my custom label. I've ...
1
vote
1answer
45 views

Visualforce Button Redirect with URL reference to related Account

I am working on a small wizard for adding Contacts of a certain type. The first page redirect is saving and redirecting with the ContactID referenced in the URL like it is supposed to, but the second ...
1
vote
2answers
33 views

Unable to redirect a page from Visualforce

I'm currently making a custom editor in Visualforce that adds things to a related list. Things from this list are selected and then when the "add packages" button is click it should make the records, ...
1
vote
2answers
42 views

Custom Button not setting record type

I have a custom button on Object A where it creates record for Object B (No relationship btn objects). The button works fine except it doesn't sets the record type, what iam doing wrong. ...
6
votes
1answer
107 views

Using static resources in OnClick Javascript buttons after “Serve Static Resources from force.com domain” critical update

We're using list view and details OnClick Javascript buttons which reference custom js ans css files stored in static resources and containing some shared logic/styles. The sample code below ...
1
vote
1answer
45 views

How to return to the previous page from a Visualforce page?

I have a page that shows records for an object and I need to be able to select some, and then once the "Add Packages" button is clicked I need the page to return to the previous page after completing ...
0
votes
2answers
27 views

Getting “System.NullPointerException: Attempt to de-reference a null object” when attempting to call the cancel function in Apex

I'm making a system for our custom packages. When attempting to assign the packages from a visualforce page to the Opportunity I end up getting this the error. This error only happens when clicking ...
0
votes
0answers
30 views

JavaScript on custom button

I am having a trouble while running a JS on my button . I have a button name Make Available on my detail page and there is a pick list name status> which is by-default pending. Whenever user click ...
0
votes
1answer
43 views

Getting an Opportunity Id into a Visualforce page when clicking a list button on a related list?

I'm currently trying to make a system for selecting multiple objects and connecting them to a related list within Opportunities. The last piece of the puzzle for me is getting the ID of the ...
1
vote
1answer
36 views

Why am I getting “Error: Unknown property 'Opportunity_Package__cStandardController.Opp_Package_Rel__c' ” from this Visualforce page?

I am currently in the process of making a system for easily adding packages from a list into our Opportunities. This visualforce page needs to be accessible to use as a list button, but ever since ...
1
vote
0answers
25 views

NA4 Is Splitting - Updating URLs On Buttons And Other Admin-Level Places (not Apex)

Original question related to this: Searching "everything" in Salesforce So there was an answer involving an "ant script", which is no use to me. I am comfortable enough (I thought) ...
0
votes
1answer
26 views

Flow being fired twice when pressing a custom button. By interview.apexp?

I just created a flow that looks up an account and displays a screen to allow the user to enter values in a textbox and select something from a dropdown. It then creates an opportunity using some ...
3
votes
1answer
87 views

JavaScript Custom Button

I am trying to build a javascipt custom button that launches a google hangout and calls with person's phone number on the Lead record. Google has indicated this is what a page with a google hangouts ...
0
votes
1answer
29 views

Why can I not have a custom list button link to this Visualforce page?

I'm currently trying to recreate the the functionality of the "Add Product" list button for Opportunity Products. I understand Visualforce pages need to have their controller set to the object they ...
0
votes
1answer
38 views

Can this be done by clicking just one button? [closed]

Basically, I'm creating a user with specific default settings, I need them to have Group access, Queue Memberships, a specific license, etc.. I just want to know if i can do all this by clicking the ...
2
votes
1answer
34 views

How to mimic the functionality of the “Add Product” button in within the Product Related list in Opportunity?

I need to mimic the functionality of the "Add Product" button that is shown on the Product Related List within Opportunity. And I need to add it to a related list for my Custom Packages Object I ...
0
votes
1answer
25 views

Attachment in Salesforce

Having an attachment code <apex:pageBlockSection showHeader="false" columns="2" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel ...
1
vote
3answers
55 views

Need to add a redirect URL to a Custom Button using Javascript

My apologies in advance for being a JavaScript newbie. I just discovered custom buttons could create new related records, and I managed to get that working with no problems. Now, once it's done ...
0
votes
2answers
18 views

How do i revert back an overridden 'Edit' Button on the record detail page?

The standard 'Edit' Button on the detail page of a record has been overridden and routes to a VisualForce Page. I want another 'Edit' button (in addition to the existing one) that allows me to edit ...
0
votes
0answers
24 views

Custom 'p26=' functions

I have created a custom buttom to send an email from a case. The problem that I've found is that I can get cases sent to 2 different email addresses. So when the button is clicked I want it to ...
1
vote
1answer
33 views

Override approval page

I have object MyReports and I generate pdf attachment after data of record is approved. Right now, after approval, I'm handling pdf creation with REST call in trigger, is there way to override whole ...
0
votes
1answer
33 views

Custom Button with JQuery

I have a custom button (which is a list button) and I'm requiring JQuery by the following code: {!REQUIRESCRIPT("//code.jquery.com/jquery-1.10.2.js")} It's working fine! The only problem is that ...
1
vote
1answer
64 views

Adding a button for every record in a related list

I want to add a button which apply a brief update in a record in a related list. As far as I've searched, there is only the possibility of adding a custom button/link in a related list table. ...
0
votes
0answers
28 views

Custom button extension: field update on click

I am trying to create two buttons that inserts Up and Down on a record by clicking a command button. Here is my code so far: VF Page: <apex:form id="votingSection"> ...
0
votes
2answers
37 views

Custom Button: Illegal Token error

I am trying to create a custom button on a detail page that updates a field on the record. Here is my code: {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} var newRecords = []; var idLob = ...
5
votes
0answers
166 views

Can I modify the Icon in a Salesforce1 Custom Button accessed Visualforce Page

I have a requirement where a user needs to be able to access a Quote object in Salesforce1, and then navigate to a related Visualforce page for the Quote while still in Salesforce1 on their mobile ...
0
votes
1answer
29 views

How to Run and Email a Report with a Custom Button?

Goal: I would like to have users be able to click a button that will do the following upon click (aka, request): Run Specific Reports Attach Said Reports to a Specific Template Email Said Template ...
-1
votes
1answer
22 views

Recordtype Change Button - Unexpected Token ;

I must have some syntax error I am missing on this button. Am I missing something? Thanks {!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")} var caseObj = new sforce.SObject("Case"); caseObj.Id = ...
0
votes
2answers
109 views

How to change the color of the button when pressed? Help

How to do it through javascript?
-1
votes
1answer
47 views

Updating checkbox with a custom button [closed]

I am trying to have a custom button that will update a checkbox from false to true by clicking the custom button. I am trying to get the code to work and it doesn't seem to work.
2
votes
1answer
148 views

Unexpected Identifier for Onclick Javascript button

I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window ...
0
votes
2answers
47 views

If button is clicked hide button for user

I am trying to write some js for salesforce to hide a button once it has been clicked for that specific user. I have hit a hurdle....any help would be appreciated. Here is my code; ...
1
vote
2answers
43 views

Add cutom button directly to list view after installing managed package

I have created a managed package in which i need to add custom button after installing my managed package to list view of account and lead. I thought it same like static resource, Remote site settings ...
1
vote
1answer
431 views

Open jQuery Dialog from Custom Button

We have a custom button on the detail page of the case designed to open a modal dialog popup, however receiving the $g(...).dialog is not a function error message. I've searched around the web and ...
0
votes
0answers
40 views

Salesforce Javascript for Email Templates error

Hello stackexchange gurus, I'm trying to create a button in Salesforce that will open an email template. The BCC recipients are based on certain options (Such as Deal Type and Supply Type, which are ...
0
votes
0answers
26 views

How do I create a new record with a record type/page layout from a formula

I have a custom object that has a State field on it, related to this custom object is a another custom object with Questions we ask depending on what state the first object is located. ie the Company ...
1
vote
1answer
41 views

link/Button which move to relevant section on page

Aim – To add an anchor link called “AUM link” in the Section called“Operational. Section "Operation" is on the Account object and on the pagelayout "Client". Once you click on link i want it so it ...
0
votes
0answers
23 views

Mimic standard button in custom button

I have a problem that the "Add to Campaign" button does not show up in the service console. So I want to create a custom button that does exactly the same as the standard button. Is there a quick way ...
1
vote
2answers
277 views

Display pop-up message or hide custom button if field is blank

I'm new to Salesforce, so if this is trivial, accept my apologies in advance. I have a button that points to an internal website. This button grabs looks at a custom field and uses that custom field ...
1
vote
0answers
96 views

p3_lkid error with custom button to send email related to standard object

I'm trying to set up a custom email button on my opportunity page that will select a template and auto-fill a few email addresses. My approach basically follows the one I found here: ...