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
23 views

How to get field values from VF page

I'm stuck with a really easy task. My VF page have StandardController and Extension. I'm using the standard fields for Task object : <apex:InputField value="{!Task.Client_Name__c}"/> So I ...
0
votes
1answer
12 views

How to create the age of escalation button(Should increment/decrement onClick)? Can someone help with the code for that button on visualforce page?

Please help with code of how to create this button(Age Of Escalation Action). I have written this till now. <apex:page standardController="User" > <apex:form > <apex:pageBlock > <...
0
votes
0answers
19 views

Custom List button to autopopulate lookup field is not working

I have created a customList button to autopopulate lookup field. Something like below: /800/e?CF00NA0000005JzZX={!object__c.name}&CF00NA0000005JzZX_lkid={object__c.Id}&retURL={!object__c.id} ...
0
votes
1answer
19 views

Object Home Page Rebuilt as Custom Visualforce [duplicate]

Out of curiosity, has anyone run across a custom Visualforce page which essentially mimics an object home page? While I understand that custom buttons can't be added to the standard home pages, but ...
0
votes
1answer
29 views

Get value of custom field using Javascript

I am trying to make a button that shows up on the Lead List results page. In order to sync with another system properly I need to have this button basically copy the name of an Account that has a ...
0
votes
2answers
35 views

Adding One Year to Date Field Value Through Custom Button

I'm going through one of the Force.com workbooks and attempting to add some functionality to a Date field using a custom button. On click, I want to button to update the appropriate field by moving ...
1
vote
0answers
22 views

Custom button or link with visualforce page in managed package in lightning org

It is one of the things, which make me crazy in salesforce. You create a custom button, which opens a page. It works fine in your org, but it fails in managed package org, in addition it should be ...
1
vote
2answers
22 views

Using javascript custom button i need to create account and person account record

like lead object i developed one custom button..when ever i click on button i need to create account and person account(person account is enabled in my org). this my code. account is created but ...
0
votes
2answers
34 views

Reg : Button Validation

I have a button it have to work only when opportunity is won = true and shipping address is blank i wrote the button code but it is not working.Can anyone help what i did mistake in my code. {!...
1
vote
1answer
42 views

Passing user parameters to a button

I'm trying to pass user parameters (integers) to a button, which runs a method. At the moment, my method and button work as intended, except with hard coded data. Below is an image of what I'm trying ...
1
vote
1answer
24 views

Issue with am onclick javascript button on a Visualforce page

I'm having an issue getting a button to execute javascript correctly on a Visualforce page. The button is supposed to execute an Apsona Merge Action, but instead, it just refreshes the page. When I ...
1
vote
1answer
25 views

Custom Button visibility on Page layout dependent on FLS of some field

Is it possible to control Custom Button visibility on Standard Page layout depending on FLS of some field? Or any other way? Please advise.
1
vote
0answers
36 views

Send email from custom object (Lightning Experience - no URL hacks avail)

I'm currently trying to add the feature of sending an e-mail from a custom object in LEX. However all the results I found were either related to sending a specific template or using hacks (which is ...
0
votes
1answer
23 views

Getting an error “Attempt to de-reference a null object”

I have a custom button which I am trying to work with. But i keep on getting error " Attempt to de-reference a null object Error is in expression '{!updateDb}' in component in page ...
1
vote
0answers
31 views

Custom edit page to open as tab in console

I have a custom edit page which is being called from a button on other vf page. Since we use console for this application I have to open the page in console as tab and on save should show the detail ...
0
votes
1answer
21 views

how to assign the date and time value in javascript?

I want to assign current date and time to field Rfleet_Protocol_Application_Date__c which datatype is date/time Eg: Rfleet_Protocol_Application_Date__c =29/5/2016 2:28 PM I tried in this way. But ...
1
vote
2answers
58 views

Custom Button on Salesforce console

I have to convert the following button to salesforce console button to open as sub-tab. parent.frames.location.replace ('a0o/e?CF00Nr0000000VUoP={!URLENCODE(Application__c.Name)}&...
1
vote
2answers
77 views

How to pass multiple value to url parameter

I am creating a custom button on a custom object A. The custom object A has multiple accounts related to it. Custom object A has a lookup relation to Account. In the button logic I am using Button or ...
2
votes
0answers
91 views

How to add a line item to a related list from a custom button?

I have created a custom list button using the wizard on a related list. The button is to add a line item to the list from the Products list. The problem is that the URL being used in the custom button ...
2
votes
1answer
16 views

How to create custom buttons on Accounts and track them?

I´m quite new on Salesforce, and I have found a lot on some of this, but nothing on how to exactly do it. Does anyone have any idea on how to create a Custom Button on the Accounts Page Layout. I ...
1
vote
0answers
8 views

Custom buttons to be able to track Logins and Log Out times

I´m pretty new to Salesforce, and I´ve been looking all over the forums on how to do it. I´ve learned quite a bit on what it´s possible, and what´s not. I want to be able to keep a record on when ...
1
vote
0answers
36 views

Custom Mail Merge Button to skip Page with Generate button

I am trying to create a custom mail merge button that skils the Generate page. I started out with this URL in a dev environment using the below for formula : IF(CONTAINS($Profile.Name,"Business ...
0
votes
0answers
29 views

Custom button on Related list not visible after deployment

I have created a new custom button on a related list in Sandbox and added it to the layout. When I deploy that button using change set, it become available in the target org but do not get ...
1
vote
0answers
31 views

(Properly) Link to custom Lightning App from record detail page?

I have a custom lightning app. How can I link to this app from a record's detail LEX page (e.g. Opportunity) and pass the Opp's ID to it? The end-user is supposed to launch the app and do some ...
1
vote
2answers
37 views

Custom Button with Scripting

<script src="/soap/ajax/37.0/connection.js"> </script > <script src="/soap/ajax/37.0/apex.js"> </script > function success() { var alertString="Success!"; alert(alertString); ...
0
votes
2answers
33 views

How to add two triggers to one custom button

How to add Two Triggers for one custom button in the same object? I Have Two Triggers A,B. A trigger Performing Field Updation In the same object where B trigger performing field Updation of another ...
0
votes
1answer
16 views

detail page link with contact as filter for report

my next question for today. In the Task Object, I have added a detail page link button, from which i would like to filter a custom report by contact id so far, I adopted another link https://cs83....
1
vote
1answer
22 views

lookup id from Task to custom object with button

I have created a custom object and in the task, i have created a detail page button to automatically create the new custom object but including already some information from the task. my Url looks ...
0
votes
0answers
31 views

How to prevent “You will be redirected to ” prompt in Lightning Experience from custom button

We have a button created via "New Button or Link" on a custom object with the behavior "Display in new window" and Content Source "URL" linking to an external https://... page This works fine in ...
-1
votes
1answer
39 views

Best approach to add custom dialog (Confirm Action dialog) on click of a custom link button [closed]

The requirement is to display a confirm Action dialog on click of a custom button that is presently having a visualforce page as its content source,used for sending an email to contact record.If the ...
0
votes
1answer
26 views

Custom Button JavaScript to select a check box error

I am currently working on a button on the lead object to automatically select a check box field on the lead object when pushed. The field is called "advocate_record_created__C". When trying to execute ...
0
votes
0answers
33 views

A problem with the OnClick JavaScript for button was encountered and how to get AJAX version

I am facing this error using custom button in lead object "A problem with the Onclick JavaScript for this button or link was encountered: {faultcode:'soapenv:Client',faultstring:' The content of ...
0
votes
0answers
45 views

Why the custom button not working for first click

I have a custom button in account. When click on the button two times it's not working, But it's working when i click third time and i didn't get the four lines of script of custom button where those ...
0
votes
1answer
41 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
21 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 ...
0
votes
0answers
24 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
41 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
30 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
35 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
41 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
41 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. {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js"...
0
votes
2answers
86 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
20 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
39 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 classic,...
0
votes
0answers
17 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
50 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
103 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 that ...
3
votes
2answers
148 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
99 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
35 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.