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
2answers
38 views

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

How to do it through javascript?
-1
votes
1answer
29 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
25 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
37 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
23 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 ...
0
votes
1answer
73 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
20 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
15 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
30 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
19 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
77 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
40 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: ...
0
votes
1answer
70 views

How to populate related list records in VF page for Editing?

I have a custom object as "Competitor__c" which has a lookup relation to Quote Object.I have a created a visualforce page on Competitor object to fetch related list record ,when user clicks on list ...
0
votes
0answers
17 views

Task Creation for a case

I am trying to create a task from waiting button. I am able to open task creation page using the following Javascript... ...
0
votes
1answer
33 views

Custom Button doesn't work in my Custom Object profile

I've attached a custom button to my custom object page layout, that redirects the user in a visualforce page, but when I log in, as a particular user, The system redirects me to an error page that ...
0
votes
1answer
48 views

How to get the selected records from the related list?

I have custom object and which is a lookup to Quote. 1)I have created a "MassEdit" list button on the related list (Child object). 2) I am unable to retrieve the records (Child records) from the ...
0
votes
0answers
20 views

Cannot see visualforce page in the content source drop down

I have created a visualforce page but can't see it in the content source drop down when creating New list Button for a custom object . Please help!.
0
votes
1answer
49 views

Choose record type based on picklist value

I have a custom object Cov__c and I have a picklist on that object Risks_c. I have another custom object Address__c, which is a child of Cov__c. I have two record types for Address__c because I need ...
0
votes
1answer
14 views

How does the EDIT ALL button works in quotelineitem object

Can any one help me out.How does the EDIT ALL button works in quotelineitem object .When we click on the "EDIT ALL" button it gives the available records present to Edit and Save.Im in a similar ...
0
votes
1answer
27 views

Detail button doesn't show up on detail page

I have created a detail button which, when clicked navigates to the create new object page. It is defined as follows: * Display Type: Detail Page Button * Behaviour: Display in New Window * Content ...
2
votes
1answer
92 views

Can we get the existing records of a related list,by clicking on a ListButton

I have an custom object named Competitors and it has a look up relationship to Quote . Created a custom button as "Edit All" and displayed it on related list..The functionality of the button should ...
2
votes
1answer
135 views

how to create a custom button for a custom object on a related list

I have an custom object and it has a look up relationship to Quote .Now i would like to create a custom button as "Edit All" and display it on related list..The functionality of the button should be ...
1
vote
1answer
55 views

Custom List buttons Supported in Salesforce1?

Custom List buttons(buttons on the related list) not showing up in Ipad(Salesforce 1 app). I see there is a knowledge article from salesforce which says Custom Buttons are only supported in ...
1
vote
1answer
50 views

How do I create a button that modifies a field, saves the record, and returns to the detail page?

I need to add two buttons to the Opportunity page, one labelled "Close Opportunity (Won)" and "Close Opportunity (Lost)". Previously I know this was available by URL hacking the opportunity page, but ...
1
vote
1answer
23 views

Conditional Checkbox to change following field type

I have a requirement where by I would like to have a field type following a checkbox change to a Master-Detail Relationship if the checkbox is check. E.g Employee Visitor (tick as ...
1
vote
2answers
145 views

Custom Button to Update Child Records

Can someone point me to a code sample that does the following: I want to update a custom field on all the account related contact records called relationship__c from a button on the parent account ...
3
votes
3answers
65 views
+50

How to measure the time to create a record in the UI?

I need to measure the time it takes since the user clicks on the "New" button until the record is saved. I only need to measure this for cases and on the standard page layout in the Salesforce ...
0
votes
1answer
204 views

Create custom Clone button for Quote object

I have created a custom Clone button for the Quote object to clone a quote and update the record type of the new quote. The button clones the quote with the current Record Type of the record it is ...
1
vote
0answers
70 views

Add new record, then add master-detail record on save

I have a master-detail record that works like this: Contact > ContactEmail > Email (based on this many-to-many document: ...
0
votes
2answers
78 views

Javascript Button - Add picklist values - Output to text area

I have about 8 picklists, half of them have values of 0 or 0.5 and the other 0 or 1 or 2. I'm trying to develop a button that will add all the values of these picklists together (picklist + picklist + ...
1
vote
1answer
92 views

in Salesforce1, How to create “specific object button” that redirect to a lightning page with is object as parameter

I'm developping an application usable in salesforce1. I'm embedding a complex html screen that would manage data about a custom object in a lightning app/component To access this screen, I would like ...
0
votes
1answer
80 views

Displaying image on custom button in Salesforce standard page (not Visualforce page)

Above image is the way i want to do it.Not sure if its possible in salesforce. The circle is the image and beside that text will be displayed. Please help !!!
1
vote
1answer
58 views

Trouble deploying from Eclipse - test and code classes

I am new to this community and using eclipse but have gotten the basics down. I am trying to create a button on our lead page to go the next record in the list and have found this post stating ...
2
votes
1answer
111 views

Long Text Area field in javascript custom button

I have a custom button (JavaScript) which copies the Description field from Event to my custom Object like this: summary.Discussion_Topics__c = '{!Event.Description}'; Both fields are of Long ...
1
vote
2answers
360 views

OnClick Javascript Button if statement

I have this custom button that is working var cw = window.open('/apex/CreateSample?scontrolCaching=1&id={!Servicio__c.Id}', 'Crear Muestra', "height=450,width=600"); (function detectUnload() { ...
1
vote
1answer
90 views

List button with a URL hack to prepopulate custom “assigned” field

I'm working on a custom button to appear on a list view for a custom object, and hitting a roadblock. I've tried a few different variations but keep getting a little sad Javascript icon instead of the ...
0
votes
1answer
99 views

On click Javscript on Custom Button

I have a related list ( custom object ) on Opportunity record. When I click on New button of the custom object from the related list of the opportunity , I want to check the value of some field on ...
2
votes
0answers
85 views

Javascript in custom button

I create a custom button with the send email features, so if the margin<0.4) show alert, than can't send the email. I create the button but doesn't work, Somebody can help me? Thanks a lot. ...
1
vote
1answer
48 views

Custom link uses hard-coded ids

I am working on a client org, and it uses hard-coded ids in a custom button/link which are pointing to Account (sobject) fields. This particular detail page button is going to create "New Contact" ...
4
votes
2answers
178 views

Javascript get field ids for URL

I'm trying to replicate the "New" button on a related list. The only difference is that, if a record of that type already exists, then it simple returns an alert. Otherwise the "New" activity should ...
1
vote
1answer
105 views

Deleting rows in a list

I have a queue setup that users can add cases to before submitting them. I currently have it so that they can type the row number of the case they want to delete; however, I need to make it so that ...
2
votes
0answers
92 views

How to lock the Attach button on custom object record Notes & Attachments related list once the record get closed (Approved/Rejected)?

Now my business users can delete and attach another file even after the custom object record got approved/rejected. So they were asking for a way to lock the "Attach" button which is listed under ...
2
votes
0answers
62 views

Email button (emailauthor.jsp) results in “The page you submitted was invalid for your session”

About 1 month ago my email button stopped working. Now pressing my 'auto-email' button gives me the email template page with the error "The page you submitted was invalid for your session. ...
-1
votes
1answer
64 views

How to use report result as input to Batch Apex

Let's say I have a report with a specific result. Now i want to process this result in a batch process when the user triggers a order-button/link. Is there a way to have a button on the report page ...
0
votes
1answer
61 views

Custom Button to Validate picklist fields in case Object

I have five picklist fields in case object and one custom button named "Open case".When I click on this button it has to check whether five fields contains values or not.If values are there it has to ...
0
votes
1answer
38 views

Custom Button to validate field values in case object

Can anyone suggest me how to validate field values in case object---for example I have 5 fields and I have a custom button named "Open Case" .When I click on these "Open Case" buttton these button has ...
1
vote
3answers
235 views

Custom button to update a field in case object

Can anyone suggest me how to update a field by using custom button--for example I have a status field in case object and a custom button named Test.If I click on "test"(Custom Button) Status field to ...
2
votes
1answer
114 views

Create a button on custom object that opens a new Event linked to that custom object

I am trying to add a custom button to my custom object. On clicking the custom button, I want to open a new event which has the "related to" field prefilled with the custom object, and the "subject" ...
1
vote
2answers
95 views

Grabbing Parameters From the Salesforce URL using a standard page custom button

im trying to create a Back button on a standard page which will take the user back to a custom visual force page with multiple parameters in the URL, i have brought through the two values i require ...
0
votes
1answer
50 views

Salesforce custom button javascript escaping error

I've noticed that SFDC is not properly escaping some characters in the code it generates to be eval'd when using javascript custom buttons. For instance, say I have an object with a field that ...