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
1answer
38 views

recordVarSet issue

I am overriding the LIST button of account Home page with my own visual force page. <apex:page standardController="Account" recordSetVar="accounts" tabStyle="Account" ...
1
vote
1answer
17 views

adding a multi-picklist field into my formula for my custom button

I have a custom button that has a javascript picklist that checks feild criteria. I need to add a multi-picklist field to the if statement to check if it does NOT contain "India". here is the if ...
-1
votes
0answers
12 views

I have written following code. It is giving error description :undefined error

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} try{ var OppId='{!Opportunity.Id}'; ...
0
votes
0answers
23 views

How to prevent to run multiple times when click multiple times on one custom button

I have one custom button. When i click on that button, That will send an email. But some times it sending multiple emails because if i click on that custom button multiple times at a time.
0
votes
2answers
24 views

hide custom button based on user profile?

I have one custom detail button in the Account page ,i want to hide that button based on the user profile ? Is there any way we can do this?
-1
votes
1answer
29 views

Javascript button for Opportunity

I need help in creating button that would prevent from creating opportunity for Inactive accounts or contacts, here is what i have so far but nothing is working if('{!Account.Inactive_del__c}' == ...
1
vote
1answer
20 views

Lightning-enabled button: Pass Parameter to VF page

We have a custom detail page button that passes the object id to a VF page which then renders a visual workflow based on that ID. Salesforce did support URL buttons in lightning before, but it seems ...
0
votes
1answer
22 views

Custom Javascript Button returns “Unexpected token ILLEGAL”

I'm trying to create a custom button that executes javscript on the Case object. I simply want to check if the Case has a specific child record already and forward the user to that record if it exists ...
0
votes
0answers
16 views

Error - Refused to set unsafe header “User-Agent”

I'm trying to adapt the below button, which is used in the Opportunity's related Cases list so that it can be used for the Account's related Cases list. ...
0
votes
2answers
52 views

Run javascript before redirecting to visualforce page - Custom List button

I have a custom list button on contact with behavior as shown below: And this custom button is added to the contact related list on account When I select 2 or more contacts and click on custom ...
0
votes
0answers
19 views

Building a custom page for contract

I have a requirement where I would like to create a custom button on the Contract object. My contract object has currently 50 fields in it. I would like create a custom functionlity where I have a ...
0
votes
0answers
35 views

List Button does not work properly in Salesforce Lightning Experience

I have created a list button on a custom object and I set the behavior of the list button to "Display in existing window without sidebar or header". This List button works fine in Salesforce ...
0
votes
0answers
16 views

Tabbed Contact page

I'm replacing my Contact detail page with a custom tabbed Visualforce Contact detail page. I've been able to replicate most of the functions of the old Contact page. But I'm having trouble with some ...
1
vote
1answer
36 views

How do we get the current logged in user in a custom button

Is there a way i can get a currently logged in user in a custom button running on javascript? I have custom button on where i am trying to update certain fields like activated by. Is there a way i ...
3
votes
1answer
92 views

JavaScript Button - SOQL Query Syntax Issue resulting in 'missing ) after argument list' error (SF Classic)

Scenario: I am working on a button which should create a new Sprint__c child record with Record Type "Sprint Deployment" which will be automatically linked (via lookup) to the Sprint__c record ...
3
votes
2answers
84 views

How to set Date/Time in salesforce using javascript

I am updating the record in the javascript while clicking on custom button. I have custom date/time field Approved_Date__c. I need to update that fields also using javascript. How can I assign current ...
0
votes
1answer
48 views

how to pass parent objects's id to custom button dynamically so same button can be used for all objects

I have a custom button on task related list of Account Object. The button contains the URL as: /apex/GetDynamoDBTasks?id={!Account.Id} Where GetDynamoDBTasks is a Visualforce page. I want to pass id ...
1
vote
1answer
30 views

Close Button in cases

I want to have a close button in case layout in community but do not want to give him a permission of edit, create or delete. just close case. how can we do that.
4
votes
1answer
78 views

Generate Tab URL With Pure Visualforce

I have a custom Object called "Related Professionals" and I overrided the 'New' button to auto populate the "Name" Field with the Default text. This is the New button Override VF page : ...
0
votes
1answer
31 views

Create a prompt on Javascript Button

I have a custom JavaScript Button which makes a call out. Button Code as Below: {!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} ...
1
vote
1answer
37 views

Conditionally load Javascript library in Custom Button

I am facing an issue with a custom onclick-javascript button that is used in the Partner Portal, Console and in "regular" Salesforce. I have the following RequiredScripts in the button: ...
0
votes
1answer
30 views

How to call a public method in javscript itself? [duplicate]

I have a custom button on my Account detail page called Change. I need to call a public method which is in a public with sharing class. What I have learned is that we can access the method using ...
0
votes
1answer
28 views

Can we add a Custom Button on a task Send an Email Page

I have a requirement where i need to add a custom button (Say as enrolled) on a task Send Email page. Enrolled is a custom object . Once we click on the custom button List of available enrolled ...
0
votes
2answers
38 views

Opportunity Edit - Javascript Button

I am trying to created a Javascript button on the Opportunity to replace the edit button. I want to check if some fields have a value, and if so direct the user to a VF page, if not direct them to ...
3
votes
1answer
50 views

Disable Custom Button in Standard Page Layout

We have a custom button in Opportunity standard page layout and when clicked it calls a webservice class (Apex class called by OnClick Javascript via AJAX) It is a synchronous call as such it takes ...
3
votes
2answers
60 views

Test Class Failures “Methods defined as TestMethod do not support Web service callouts” For Custom Button

I have a custom button that calls an apex class - and per this tutorial the class is a "Web Service" (but not in the classic sense). 5 days ago in production the test class (and 21 others) started to ...
0
votes
1answer
22 views

VisualForce error - Custom Button to add existing records [duplicate]

I am receiving the following Error: Unknown property 'AddExistingSpecsExt.Specifications__c' Line 0 VisualForce Code <apex:page controller="AddExistingSpecsExt"> <apex:form> ...
0
votes
2answers
23 views

Apex errors with Custom button to add existing records on a custom object

I am receiving apex errors with the following code: public with sharing class AddExistingSpecsExt { public Specifications__c loadedSpec { get; private set; } public AddExistingSpecsExt() { ...
1
vote
1answer
37 views

Custom button to add existing records

I am trying to add a custom button to add existing records to a custom object related list (Specifications(custom obj) to Products(custom obj)) Ext class code: public with sharing class ...
1
vote
1answer
14 views

Create a button that opens a questionnaire that then gets attached to the opportunity record

I've been asked to create a button on the opportunity object that will open a questionnaire with about 20 questions and gets saved to the related opportunity record. The questionnaire will not be used ...
2
votes
1answer
47 views

Need help with custom javascript button to update records

What's best way to update records based on record type using custom button. Below code partially works and fields updates inside 'If block' doesn't work. What I'm missing here ? ...
1
vote
2answers
53 views

Call Public class method from onclick javascript [duplicate]

I have a public emailing apex class I need to call that from onclick javascript button of a detail page. Can someone let me know , if I can do that? Please give me an example. I am not getting it. I ...
0
votes
2answers
64 views

Id is not defined while opening a new JS window

I have below code that gives out error with Form custom object's Id value as not defined. Can someone please help? JAVASCRIPT ...
0
votes
0answers
17 views

migrating URL prepopulating button

How do I migrate a custom button that I have created to prepopulate fields on a new record. This is a list view button and it includes hard coded IDs in the URL formula. Will migrating this button ...
0
votes
1answer
44 views

Error to populate lookup field onclick javascript

I have below code which throws an error to populate lookup field ID value from one object to another. It unexpectedly tries to assign Name of Account object instead of ID. So it throws error. Can ...
1
vote
2answers
46 views

Insert record to a different object cloning data from detail page

I have a custom detail page button to run OnClick Javascript on custom object Form_Requests_abv__c. On this button click it should do two operations. 1. Create a new Sample_Order_Form_abv__c record ...
0
votes
0answers
14 views

Adding Web Tab in Console app

Is there a way you can open the custom tab which I have added in the console app in a new window? currently its opening in the same window but I'm looking a way to open is that possible? I'm aware ...
1
vote
1answer
28 views

Custom button issues

I am making a custom button on a list view so I can have users select multiple records and update 1 field from blank or false to TRUE. This is to kick off other actions. (this is in the customer ...
1
vote
1answer
33 views

Issue with buttons with apex

I have the following visualforce page: <apex:pageBlock> <apex:pageBlockSection> <apex:pageBlockSectionItem > <apex:outputLabel value="Convert ...
0
votes
1answer
30 views

how to call a simple class method by clicking custom button

i am trying to call my method by clicking a custom button, but i also have to pass the id of that record as a list. here is my class & method. Can anyone please help me out. public class ...
0
votes
1answer
48 views

How to add Custom buttons to list view layout in salesforce1?

Using global actions I have been able to add custom buttons to record level layout, but I didn't get how to add a custom button to list view layouts in saleforce1. Thanks in advance.
0
votes
0answers
37 views

Display Spinner gif on click of custom button on standard page

I have a custom button on my standard account page layout. On click of this button I call a web service which takes some time to respond. Because of this delay, I want to show a spinner image until I ...
2
votes
1answer
77 views

output Dynamic HTML with VisualForce component

in my page I show a list of records along with pagination as below: the navigation buttons at the top are output from a VF component in my controller: // List Records pagination public ...
0
votes
0answers
33 views

Custom Activity Page & Button

Two part question - Users on my system are currently using the 'Log a call' on an account to log interactions. I determined how to create a custom button in the activity menu (setup tab) but am not ...
4
votes
1answer
34 views

JavaScript SOQL Query for Emailing from Listview

I'm trying to create a button which will pull emails from a list view and push them to an empty email template. It is for a custom object (Students_Programs__c) which has a custom formula field for ...
4
votes
1answer
137 views

Custom Button Issue

Is this correct way ? I am trying to "View all cases which are related to the Contact I have on my current Case" (Sibling Cases - Case records who shares same Contact as parent/lookup). Example : ...
0
votes
1answer
51 views

Display Modal Dialog on Custom Button ( Standard Page Layout )

Is it possible to display a modal dialog upon clicking a custom button on standard page layout ? Example of a modal dialog that we want to be displayed is shown below. Do we need to any javascript ...
2
votes
1answer
47 views

emailauthor page parameter from (p26) not working

I am trying to send an email from the emailauthor page (Activity History Send Email), when I get into the page I have multiple options to select in the field From, I want to always have a default ...
1
vote
0answers
29 views

Mass Add to Campaign Button on Custom Object List View

I have created an "Add to Campaign" button on a custom object which when you click it takes you to the Add Members page, so that part correct. However, when I try to select records and click the ...
1
vote
2answers
77 views

Can I build a custom button to submit a opportunity into approval process?

Is there any way to create a custom JS button that will push a opportunity into one of my specific approval processes? Thanks!