Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

This tag is for questions related to an interactive html page element that's event driven. A button uses either Ajax calls or JavaScript to initiate an Ajax Event of some kind, as defined in the page mark-up, when any of the following occur on the button: onblur, onclick, onfocus, onmousedown, ...

0
votes
1answer
11 views

how to make Classic Javascript Pop up box with drop down list?

Hi I've created a custom button that fills in an email template. I'm trying to add an drop down list so the user can select the template they want. Right now it uses a prompt pop up window, where as ...
0
votes
1answer
28 views

How to hide or disable “add to campaign” button in Contact page layout ( LEX )

I tried to remove from contact page layout the "add to campaign" from Search Layouts. But it's still visible second step config: any advices?
0
votes
2answers
27 views

Custom button without javascript code

I have a requirement where I need to pass record Id to apex class on click of a custom button(which is placed on the standard page). In order to pass record id, I need to write javascript code, but ...
-4
votes
1answer
32 views

Custom Button that links to the Visualforce Page [closed]

I need to create a Button for the Page Layout that links to the Visualforce Page (another page). It's for custom object. How can I do that? Can I use "Buttons, Links, and Actions" to open VF Page? Or ...
0
votes
1answer
31 views

Hide Visualforce Page Button in Classic

I have a Button on QuoteLineItem object, which call Visualforce Page. It's related list button and, as far as I know, it can't be an Action - only Buttons supported on this object. So the issue is ...
0
votes
1answer
22 views

Why are Lightning Actions for Case Object showing in Feed?

I'm trying to create a button for a case detail page. However I can't get anything to show in the highlights panel at the top. I've created a new page layout for Case that isn't feed tracked but it ...
1
vote
2answers
23 views

Javascript button to set checkbox true if conditions are met

I keep getting 'unexpected token ==' when the button is clicked. I have been through the code and everything looks right to me. Can anyone see why? All field names are correct. {!REQUIRESCRIPT("/soap/...
1
vote
1answer
25 views

custom button on opportunity - visualforce with javascript

I need help. I have a visualforce page named "Edit Quote". I need a button to open this page on lightning. since javascript is not supported I created a button to open another vf page names “...
0
votes
1answer
30 views

How can i create a custom button, when pressed will create and insert a new Quote?

I need to create a custom button on my Opportunity Page Layout and when it is pressed this button needs to create automatically a Quote. Basically, the point of this is to avoid clicking so much. I ...
1
vote
2answers
29 views

Creating a Lead from a Button

I'm looking to create a lead from an account using a button. When I go to create this lead, I get the following error. Can anyone tell me what is wrong with my approach/code? {!REQUIRESCRIPT("/soap/...
0
votes
0answers
81 views

Log a Call Button on Lightning

I cannot get the log a call tab to appear on the lightning page. I am just using the standard activity component. It seems to apply to all objects, but for now we can just focus on opportunities. I'...
1
vote
2answers
68 views

To hide the button in Classic view and show only in Lightning view

I need to create a Custom button(Not a VF page button) which will work differently based on the user view ie, Lighting and classic. I need hide the button in Classic view and show only in Lightning ...
0
votes
0answers
40 views

What is the URL to the new Salesforce Lightning Email Editor for use in Action Buttons

BACKGROUND I have an action button which opens this link: https://xxxxx.my.salesforce.com/email/author/emailauthor.jsp? p3={!Opportunity.Name} &p3_lkid={!Opportunity.Id} &cancelURL={!...
1
vote
0answers
51 views

Call lightning component from New button on drop-down list of an object tab

I have created a lightning component to override new button on Asset list page. When the new button is used from Asset list page it works as desired, however when I click new from the drop down list ...
0
votes
1answer
32 views

How to get opportunity history value and convert it to pdf?

im new in salesforce programming.. I made an pdf report (button) on opportunity.. I can get the opportunity object field value (and opportunityLineItem) and convert it to pdf.. but down below the ...
0
votes
1answer
169 views

Custom button in lightning onclick redirecting to object record page with list view as “recently viewed”

I have a custom button in lightning component and onclick of the button I want to redirect it to object record page without hardcoding the URL. Please help!!
1
vote
1answer
33 views

Custom Visual Force page access for standard button

I have two profiles named as Recruiter and Manager,for these two objects, i am overwriting standard new button with custom Visual force page I need for one profile custom Vf page for New button and ...
1
vote
2answers
27 views

Help with JavaScript Button with If Statement

I know next to nothing about javascript so don't beat me up too much if this is utter garbage, but here is my attempt at a somewhat simple button that looks at 2 values and kicks a flow off or ...
1
vote
2answers
59 views

Delete a record and hide it from pageBlockTable without filling the form

I want to have a "Delete" button for every record(row) displayed on my Visualforce page, but evry time I want to delete my records I have to fill my form with some values and then the record can be ...
3
votes
1answer
33 views

URL Hacking - Trying to incorporate a unique count at the end of a pre-populated field

Created a URL that works fine, but I'm looking to add a count at the end of the Record name. For example: (Account Name) "Scorecard" {Count Field on Opp} + 1 Here is the URL: /a0L/e?&retURL={!...
0
votes
1answer
26 views

Prevent reloading of Page on oncomplete of actionfunction

I have below code where I want to do an action to apex action function and oncomplete of it want to call a javascript function. Unfortunately instead of calling the action the action function in my ...
2
votes
1answer
166 views

Lightning button action in VF page

I have below commandbutton that works fine for me. When I try to convert to lightning buttons it simply just reloads the page and does nothing as expected like calling the pagereference method and ...
0
votes
0answers
30 views

Page layout URL back button?

I have a button on my account that opens a url into the page with sidebar and header. the problem is business now wants to be able to go back to the account that they clicked the button from. they ...
1
vote
0answers
15 views

Permission for Standard button?

This should be simple, but I can't find this particular permission. A user's profile is set to be able to Edit Contacts (on the record type in this issue - that's fine), but when they click "Edit" in ...
3
votes
1answer
27 views

What do New Opportunity, Contact buttons on Devhub Scratch org. layout do?

In the Devhub org, when you go into any scratch org., you can see below 3 buttons appear on the layout. It doesn't seems to do anything related to scratch org in my trial Devhub instance. Also does ...
0
votes
2answers
91 views

Passing Values from Lightning:menuitem

//Table with recordsetvar <td data-label="EDIT AND DELETE"> <lightning:buttonMenu alternativeText="More options" onselect="{!c.editDeleteJS}" iconSize="small" aura:id="{!grpsegrel.Id}"&...
0
votes
0answers
8 views

How to generate custom Report for Button used to generate letters

Appreciate if someone can point towards the right direction to generate a report to report on the Button Link used in Cases to Generate Letter. As in present we don't have visibility on Users ...
0
votes
1answer
29 views

Button access to public groups

I am facing issue to build this logic in my application, can anyone help me how to achieve this scenario. I have two public groups in my Org like Group A, Group B. I have two buttons in the record ...
0
votes
0answers
23 views

Clone button on Report not displaying

For some time now the clone button on the Report object has been missing in both lightning and classic. I'm trying to identify why and get it back up there since this button makes our lives so much ...
0
votes
2answers
78 views

Where do I find the Manage External User Button on the Contact Page Layout

This question has not been answered elsewhere. Salesforce Documents suggest there is a Manage External User Button. But it cannot be found in the Contact Page Layout Editor. Where Is It?
0
votes
1answer
17 views

Mass Update & Mass Edit button Visualforce Error

One of my users gets this error message, "core.apexpages.exceptions.ApexPagesHandledException: Object type not accessible" when they check off multiple checkboxes on the case list and press the mass ...
2
votes
2answers
144 views

“Log in to Community as User” Button Missing

I know that in the Winter release the "Log in to Community as User" button was added to Lightning. I did look at other pre-existing topics for this subject and none of those answers resolved the issue ...
0
votes
0answers
223 views

How to adjust the width of the Lightning Action Button popup that shows a Visualforce page? [duplicate]

I have a simple visualforce page that I want to show from a Lightning Action Button, as in the first image shown. I would like to be able to set the Width of this popup. I know I can set the height ...
0
votes
1answer
118 views

Onclick javascript Button is not working [duplicate]

I have created onclick javascript button functionality but when I clicked on button I am getting "Problem with onclick javascript for this button or link was encountered: Invalid or Unexpected token". ...
0
votes
1answer
173 views

Add button or action to User layout in both Salesforce Classic and Lightning Experience mode

I need to add button (or action button, it doesn't really matter) to both Salesforce Classic and Lightning Experience mode on User layout but looks like it is not possible to add buttons to user ...
0
votes
0answers
18 views

Export Buttons and Actions from each Page Layout

Is it possible to export all available buttons and actions from each page layout of each object into one file? It would be great to get the name of the button/action, whether it is available on a page ...
0
votes
0answers
21 views

How to add custom button on Contact layout (list) page in Lightning?

What should I do to add a custom button to Contact list page in Lightning Experience that would create Tasks for any selected contacts from the list, when clicked? In Classic, this would be "Execute ...
0
votes
0answers
11 views

how to ready the filetname before clicking the custom List button in lightning

I have custom list button , for which Opens a visual force page. However i want to read the (Listview Id) from the URL when the user clicks that List Button. Please see the attached. any ...
1
vote
0answers
285 views

CSV Download Button in Lightning

I have created a 'Download csv' button through lightning page.When I click the button and choose the user from the dropdown for whom the related list be downloaded.The entire list according to the ...
0
votes
0answers
8 views

populate an email template with custom params

Using button and javascript code, I'm having an issue with populating a template dynamically with custom content which is not linked to the current scope of user/lead/etc. I've found a lot of ...
0
votes
0answers
159 views

Prepopulate Fields with Values(Opportunity Field → Quote Field)

We use Lightning Experience. When creating a quote, I would like to put the field value of the opportunity as default value in the Quote field. In Classic we could use buttons, so we could do it using ...
0
votes
0answers
179 views

Access standard Lightning Quote Line Item Dialogs from Lightning Component or Visualforce Page

We have a Visualforce Page which lists the QuoteLineItem records for a particular Quote record using the apex:pageBlockTable component. It also proves buttons (apex:commandButton) to access the ...
1
vote
1answer
60 views

Fetch JavaScript code of managed package button

I have a managed package object which has a button called Public Link which executes Javascript and displays a public URL in an iframe. Is it possible to see the javascript function code and save the ...
0
votes
0answers
19 views

Get selected item in related List using custom button

I have related list in Workorder object to a custom object. In the related list appears some rows with the related items with a checkbox in each. I have a custom buttom to edit objects. I would like ...
0
votes
0answers
257 views

Get value of a selected element in a lightning component

I have a lightning component with several buttons in it that are meant to be selected by the end user. I wish to be able to get the value of the selected buttons so I can send those values to my Apex ...
6
votes
2answers
411 views

AfterRender on button in Lightning Component (DOM update)

I am trying to do something that sounds easy in JavaScript but that I have difficulty to do with Lightning component. The functionality is to highlight the currently pressed button as explained in ...
2
votes
1answer
646 views

Unable to disable a button in lightning

<aura:component > <lightning:input type="toggle" name="toggle1" aura:id="toggle1" label="Testing Toggle" ...
0
votes
0answers
32 views

Flow to duplicate a button click

I have a flow that creates a record on a Transaction custom object. But to actually capture the transaction I need to click a button on the transaction page. The button launches a visualforce page ...
0
votes
0answers
209 views

Remove/hide the 'New' button from Custom Object's list view

I have a Custom Object called 'CustomObj' which will only be created from another object. I have a Visualforce page where I am redirecting the user when they click CustomObjs tab and I am displaying ...
0
votes
1answer
34 views

Community User not being able to edit and save case

User with a community license is able to see cases, and edit them, but Salesforce only shows two options when saving: "Save and New" or "Save and Close", but what if my user wants to just edit the ...