Questions tagged [button]

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, onmouseout, onmouseover, onmouseup, or ondblclick.

Filter by
Sorted by
Tagged with
3
votes
1answer
875 views

Can anyone suggest how to do an animation effect like Standard Refresh button do in Lightning Component?

In standard related lists, (for example) Contacts related list on an Account record. If we open full list and click on Refresh button, it happens to do an animated effect by rotating the icon inside ...
-3
votes
1answer
48 views

Create a button that allows sending a message to the Contact of a custom Object [closed]

I have a custom Object Car__c. One of the fields in which is Lookup on Contact. When I filling this fields, I must provide the ability to send a message to the Contact that is selected in the current ...
0
votes
1answer
41 views

Javascript custom button salesforce error

I am trying to get the profile and username in JavaScript button but I am getting an error when trying to click on the button {!REQUIRESCRIPT("/soap/ajax/36.0/connection.js")} {!REQUIRESCRIPT("/...
0
votes
1answer
601 views

Convert javascript button to URL button [closed]

I have a javascript button which is a list button with following javascript. var records = {!GETRECORDIDS( $ObjectType.Property__c)}; if (records.length > 0) { //perform logic to concatenate ...
1
vote
1answer
252 views

How to remove `Save (Ignore Alert)` and `Save & New (Ignore Alert)` buttons?

I have created a duplication rule so that when a new lead record is created to notify the user if there is an already existing lead. When there is an existing and duplicated lead I need to forbid the ...
1
vote
1answer
1k views

Custom Button - Close the Status for Cases in Lightning Experience

I am struggling with the following task: 1) I need to create a custom button "Close the status", that closes the status for the Case and 2) it should be located at the same position as on the ...
0
votes
1answer
4k views

Convert JavaScript button for lightning!

I have a JavaScript button which works fine in classic but doesn't show up in lightning, my guess that JavaScript buttons are not supported in lightning, I couldn't convert it using the converter ...
-1
votes
1answer
24 views

After clicking on a custom button on Account page, I want to autopopulate a custom field of Opportunity [closed]

Apex: global class AccountClass { Webservice static void populateOpportunity(Account id1) { List < Account > acclist = new List < Account > ([Select AccountCreationDate__c ...
-1
votes
1answer
342 views

Heroku Button Deployment: The content of app.json is not valid [closed]

I cannot message Heroku directly since I am on the free tier. Heroku refers me to Salesforce. My GitHub repo: https://github.com/NNTin/discord-twitter-bot When I click on the Heroku Button in the ...
0
votes
1answer
185 views

Hide Custom Button in visualforce based on Pemission Sets

I Have a visualforce page where I'm having two buttons which I'm hiding to particular profiles based on profile name rendered="{!IF($Profile.Name == 'Profile1'||$Profile.Name =='Profile2'||$Profile....
0
votes
2answers
40 views

Take ownership and open case link on list view

I've created a button called Assign to Me and have gotten it to correctly move a case from a queue to the current user and successfully change status to "Working". I'm struggling to get it to open up ...
1
vote
1answer
280 views

Are Quick Actions really only available in Chatter? Can we somehow get a 'Create a Record' to display on the standard page layout?

Apologies in advance, because I find quick actions and publisher actions confusing and I didn't find a clear-cut answer on forums or documentation... We are trying to not reintroduce URL hacks, which ...
0
votes
1answer
370 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
1k 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
403 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
1k 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
309 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 ...
1
vote
1answer
4k 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
149 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
232 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
842 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
40 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
2k 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
680 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 ...
1
vote
0answers
229 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
368 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
105 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 ...
1
vote
1answer
101 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
220 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
659 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
49 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
496 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
3k 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
161 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
295 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
34 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 ...
1
vote
2answers
2k 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
1answer
161 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
531 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
3answers
1k 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
61 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 ...
3
votes
2answers
10k 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
1answer
725 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
2k 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 ...
1
vote
0answers
1k 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 ...
1
vote
1answer
211 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 ...
6
votes
2answers
1k 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
2k 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
75 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
1answer
123 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 ...

1 2
3
4 5
8