The custom-button tag has no wiki summary.
1
vote
0answers
6 views
Customers cannot install Package if Quotes is disabled (Which is default behavior )Installation complains “Missing Organization Feature: Quotes”
1) Adding functionality for e-signature "Sign Document" button in App setup -->Customize -->
Quotes --> Buttons and Links --> Custom Buttons and Links --> New Button for
"Sign Document" and created a ...
2
votes
2answers
38 views
Opportunity Product Button
Do you know if i can add a custom button on product section on opportunity?That is near the buttons ADD PRODUCT_CHOOSE PROCE BOOK_SORT
To solve this I have created a List custom button ...
1
vote
1answer
20 views
Open network drive from Salesforce field or a custom link
I tried creating a custom field and a custom link on standard object with the link:
file:///Users/sk/downloads/index.html
It doesn't open a new page at all. Even if I try open as a new tab/new window, ...
0
votes
2answers
36 views
Create new Related Object on popup
It is possible to open a popup to create a new object by clicking the "new object" button that is on related list?
I think that I could add a custom button calling some javascript to ...
1
vote
1answer
37 views
send email button from custom object
I am a newbie, and that's the probably reason why I am lost with this problem.
I have two email templates created (one for students, and another for professorial). There is a custom object, and I need ...
7
votes
2answers
98 views
URL Hack: Pass additional parameters into the saveURL
I'm pretty good with URL hacks to set field values in a record, save=1, saveURL/retURL, etc... But I'm getting stuck on something I've never tried before and I don't even know if it is possible. Is ...
-3
votes
1answer
104 views
Help with convert lead code for custom controller [closed]
I need to add additional functionality to my custom "convert" controller.
In my controller, I have a custom button named "convert". When I click this button, it will create a new Account, Contact and ...
1
vote
1answer
41 views
Custom Button for Convert Lead with Javascript
I would like to prevent users from converting a lead if some fields are missing (State, country, company type) - I don't want to use standard validation, as I want the users to remain on the same ...
0
votes
1answer
47 views
Custom Send Email Button With “Hidden” Email Template
Anyone have an idea on how to have an Email Template in Salesforce which most Users "cannot see" but which they can use to send to clients? This would be done via a simple Custom Button:
...
2
votes
2answers
41 views
Creating custom button while installing package
I have created a app and have it as package and have install to an another env i have a custom button in may package. I need to get this button auto generated on the object when the package get ...
0
votes
2answers
23 views
Updating Data On PARENT Via Custom Button
This is loosely related to a recent question: Standard Button CODE Available?
Does anyone know of any examples/tutorials on creating a custom button which will set values into the PARENT record of ...
2
votes
3answers
80 views
Standard Button CODE Available?
Is there a repository of the actual code behind Standard Buttons? Specifically, I'm looking for the code for "New" (and in my case, it's for use within a Related List on Opportunity).
I want to ...
-1
votes
0answers
58 views
Javascript on custom Button from Quote to Account
I would like to prevent users from creating a quote if "Address" fields are missing in the account. I know I can use validation rule, but I'd like to prevent users from getting to the quote screen (as ...
0
votes
0answers
39 views
Custom Button Javascript - send Validation Error Text to screen?
Is there a way to send (if any) the Validation Error text to such a button, shown below? I would put it at the "Error" text at the end, if possible. I cannot find a reference to this in my searches.
...
3
votes
1answer
91 views
Custom Button (javascript) - Field Name Changes Not Automatically Made
I understand generally WHY this happens, but I'm curious if there is a better way to write the two references in code below so that if I RENAME the FIELD in SF, it updates the code?
{!REQUIRESCRIPT ...
1
vote
1answer
38 views
Custom Button - OnClick JavaScript - Reference Current Date?
I'm missing something simple here probably, but it's escaping me.
FormToUpdate.set("RETURNFUNDS_Sales_Rep_Signature_Date__c", {!today()} );
I've tried now() and today() above at the end, and it's ...
10
votes
2answers
254 views
Changing the color of a custom button
Is there a way of changing a custom button color? Not a button on the visualforce page but rather the ones created under custom and links on an object.
Thanks.
-K
2
votes
4answers
88 views
How to disable a custom button once it was clicked
Hi I am having a custom button"Convert", I need to disable this button once it has clicked. Kindly anyone tell how resolve this either by apex code & Visualforce code. Kindly reply me to resolve ...
8
votes
2answers
63 views
What is the difference between {!URLFOR($Action.Activity.NewTask)} and {!URLFOR($Action.Task.NewTask)}?
When you try to create a custom button for a Task, if you choose "$Action" in the "Select field type", you have two options to define that button:
$Action.Activity.NewTask - This will take you to a ...
1
vote
3answers
41 views
How to create custom buttons
I am new person in salesforce. Can any one please detail explanation of how to create custom Button in either standard object or custom object?
0
votes
2answers
85 views
How can I use a custom button to run this Apex code?
I've been researching this and I am trying to use a VF page method of invoking an Apex class through a custom button. The method I am attempting to use is this :
Invoking Apex Code With a Custom ...
0
votes
1answer
23 views
Case Emails - Custom Button - TO field not populating properly
https://na4.salesforce.com/_ui/core/email/author/EmailAuthor?
p3_lkid={!Case.Id}&retURL=%2F5{!Case.Id}&
p26=cs@markettraders.com:Customer%20Service
I have gone back and forth with this code, ...
1
vote
3answers
106 views
How can I create a parent and several children with a button?
Here is the code as it stands right now :
public class MyControllerOppAndCBC {
public void CreateOpportunityWithChildren(Id accountId) {
// Query the countries related to this account
...
1
vote
1answer
66 views
Custom Save and New Button
I have a custom button that skips the record type selection screen. I'd like the Save and New button on the entry screen to also skip the record type selection screen. Is there a way to pass in ...
1
vote
1answer
60 views
Does $Action.New not prompt the user to select Record Type?
I have Task object with few record types. I created a custom List button on the task object and placed it on the related list of few objects. When i click this button i expected that it would prompt ...
3
votes
2answers
37 views
Refresh the page on complete of execution
I have a detail page button which calls a webservice class. Its some thing like:
sforce.apex.execute(Class, method, {paramName : Param}, { onSuccess: success, onFailure : failure});
I need to ...
1
vote
1answer
35 views
Force Show the latest Chatter Feed Item relating to a record
Not really a question but something cool that might belong here, we had a customer that has a round robin process for lead assignment driven by a button. We from there are calling a hidden Visualforce ...
3
votes
4answers
49 views
Provide standard clone button functionality to a button on vf page
I have an object whose standard new, edit and view button are overridden with a vf page.I want a Clone button on this vf page which should work exactly like standard clone button. If suppose i open an ...
2
votes
1answer
89 views
URLFOR for list view buttons?
Issue
How can I redirect a user to a custom list view button with a specific set of records? Was hoping for something like this
{!URLFOR($Action.Account.List_View_Button, accountIds)}
Background
...
1
vote
2answers
140 views
Visualforce as a parent for another Visualforce Page
I would like to create a functionality similar to the "Preview PDF" on Quotes, only on custom object (Invoice). I created a visualforce page that generates a PDF (see below), but I want to create a ...
2
votes
1answer
321 views
Sending dynamic checkbox values from a VisualForce
I created a VisualForce wherein I display values from a map (returned from a custom controller with a SOQL request) using an apex:repeat. Each time I display this VisualForce page, the amount of ...
2
votes
2answers
90 views
Load and execute Javascript on the fly (Stored in static resources some other place) with SFDC Buttons on layout
Use Case - There is Javascript execute button on Account page layout named 'Update Account' -
{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/25.0/apex.js")}
...
5
votes
3answers
273 views
How to build a SalesForce Custom Button with “validation” rules
Need a custom botton on an opportunity page to execute a task only after a set of validation checks have been preformed. Meaning the button will only function IF a list of fields and pick-lists have ...
2
votes
2answers
138 views
Populate lookup field on Object after Clicking a custom button and creating record on different object
I would like to create a custom button on service contract to create an opportunity. I want to populate a lookup field between service contract and opportunity (So I will be able to use it for some ...
6
votes
1answer
53 views
Replace New Task button on Case that will put the user on the newly created task
I'm trying to replace the New Task and New Event buttons on the Case Activity related list. When the users press the new button, they want to remain on the newly created task and not be navigated ...
3
votes
2answers
109 views
Use a Custom Label in a Custom Link/Button
Is there a way to use a custom label in a javascript custom button ?
for example:
var targetUrl = encodeURI("http://{!$Label.targetHost}/what/ever?user={!$User.Username}");
3
votes
2answers
66 views
Custom link or button to download most recent version of chatter file
Is there a particular url I can put into a custom link or button that will link to a chatter file, that when clicked will download the most recent version?
I know I can use the download url to get a ...
8
votes
1answer
105 views
Person Account Contact ID in Spring 13
I have a custom object that looks up to Contact. On the Person Account Detail page, I have a custom button on the related list for this custom object. In production, this button references ...
0
votes
2answers
48 views
Prepopulate fields on standard layout but before that allow selection of record type
I was looking at ways to prepopulating standard layout pages the link below was helpful in getting it to work.
How do I prepopulate fields on a Standard layout?
But i need to allow users to select ...
1
vote
2answers
339 views
Need some help with a custom button or button override
Hopefully I can explain my question clearly here.
I want to change the behavior of this button that appears on our Opportunity page:
The Opportunity object has a custom rollup field that counts the ...
2
votes
1answer
82 views
Get IDs of checked/ticked records, from list view, in Customer Portal
My custom button works in normal Salesforce UI, but not working in Customer Portal.
OnClick JavaScript:
var contactIds = {!GETRECORDIDS($ObjectType.Contact)};
if (contactIds.length != 2) {
...
4
votes
2answers
316 views
Custom Button Return URL (retURL)
I am using a custom button to execute a flow and a retURL tag to return to the record after the flow has been completed.
...
2
votes
4answers
1k views
Calling Apex Class from Custom Button, And Then Refreshing List View
I have added a Custom Button to the List View of the Custom Object. What is the best practice of calling an Apex Class on click of the Custom Button, and refresh the List View after execution of the ...
1
vote
1answer
149 views
List View Custom Button to Collect Values of Selected Records
I want to create a JavaScript button to use on list views that when clicked captures a list of the values of a field on all the selected records. GETRECORDIDS returns a set of IDs of selected records. ...
3
votes
2answers
327 views
How to fetch namespace prefix and salesforce instance using javascript?
i am using Custom button & links in List view of Object and on click of button i am executing javascript to redirected to new page and its works fine in my DE but when i install that package in ...
2
votes
2answers
254 views
Update a checkbox on all records in a related list from a related list button with JavaScript
I need to allow a user to select one or more records from a related list and click a button on that related list that sets a checkbox to true on each selected record.
I have prepared the following ...
1
vote
2answers
152 views
Count Custom Button Clicks
I've added a custom button to the opportunity layout. I would like to count the number of times this button was clicked.
!REQUIRESCRIPT("/soap/ajax/26.0/connection.js")} //adds the proper code ...
0
votes
2answers
226 views
Custom “New Contact” button on Account detail page
I've a created a custom button on Contact object and added this to Contact Related-list on Account's Page layout. I want this to depict same functionality as standard "New Contact" button does. If use ...
1
vote
3answers
81 views
Custom Link to Update Field on Solutions
I want to add custom links to the solutions on the Self-service portal. These links will say "Please indicate if it's an useful solution: Yes / No. I'm wondering if it's possible to add a counter to ...
1
vote
1answer
154 views
Salesforce Case Feed custom button problem
We are just switching on the case feed within our Salesforce org but have noticed a rather irritating
issue. We have a number of custom buttons and when we go into the list and click on the link /
...




