Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
0answers
17 views

How to implement button on a Contact page that calls an Apex code providing that contact's Id (Lightning) [on hold]

I would like to create a button on top next to 'new case', 'new note' etc And by clicking it sends the contact's id of the current page to a function in an apex class. So far, all the solutions I ...
0
votes
0answers
19 views

Call Apex Controller method from button in Visualforce component table row

I have a Visualforce page which has a few Visuaforce Components to display sections of data, one of which contains a table with an "apex:repeat> for each row. Each of these rows has a button, which, ...
0
votes
0answers
9 views

Download Vfpage using download button

Just for curiosity if we save the class in salesforce org download button is available and we can download the class in local system but for visualforce page why not this button available.
0
votes
0answers
14 views

Javascript Code on Order Object in Create Order Custom Button

I want to override Standard Button with Custom Functionality. When user clicks Create Order button it should check for its related Quote's Quote lines product name which contains QSM then it should ...
0
votes
0answers
15 views

recreate inline edit icon in lightning web component [duplicate]

I am trying to recreate the inline edit functionality. I would love to have a "light" edit icon that becomes "filled in" (normal) when I hover over it. I have a lightning-button-stateful icon like ...
0
votes
0answers
25 views

Is it possible to create a custom button which causes related lists to refresh?

I would like to add a button to a page layout which when clicked would cause all the related lists to refresh. Is there a page event I can trigger to make this happen? Is is possible? How would I ...
0
votes
0answers
21 views

Fallback routing in Snap-in Chat

Is it possible to setup fallback routing in Snap-ins chat similar to how it works in Live Agent: https://developer.salesforce.com/docs/atlas.en-us.218.0.live_agent_dev.meta/live_agent_dev/...
0
votes
1answer
18 views

How do I call a Lightning Component from my Visualforce page button/checkbox?

I have a custom VF page that displays information from a custom object. I currently have a checkbox that displays/hides a VF section to enter a new record of this type, but would like to make use of a ...
0
votes
2answers
24 views

how to remove default subject value “Call” from log a call button from activity history?

I want to remove the default subject value "Call" from the 'log a call' page from activity history section on case page. Could it be possible? Thank you. Thanks, Anitha
0
votes
0answers
21 views

Having trouble with a date/time get;set;

UPDATE I made a global string in the controller called temp date composed of the date as yyyy/mm/dd and then used THIS is the get;set; var rather than the one I directly use in the query. When I am ...
0
votes
1answer
33 views

How to execute one method after the previous got executed

I'm having one method in lightning controller which will call another method in helper class. But it's not executing in the order I coded. I know JavaScript doesn't wait for the response of the ...
0
votes
1answer
38 views

Custom Button to create a task and send email on first click and no action till 180 days. Error when applying If condition

I am completely new to Salesforce development. Custom button on Contact object needs to create a task and send email( email template) to the contact email when Language field is English or blank, when ...
0
votes
1answer
28 views

The conga page is getting there,But Facing error Parameter Id missing? [duplicate]

when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID ...
0
votes
2answers
129 views

Show message and grey out button in lightning component

I have a component and I want to show a message and grey out the button if some fields are not filled, how to do this? Component: <aura:component controller="purchaseOrderComponentController" ...
0
votes
1answer
81 views

Add validation to managed lightning button

I have a managed (detail page button, content source: visualforce page) button which when clicked opens a visualforce page, I want to make this button shows a message if a field on the object is ...
0
votes
1answer
31 views

How to remove Lightning Component Button from a page under certain conditions?

I have a button on a custom object which was built as a lightning component. I want to remove the button once the custom object has a Status updated to 'Completed'. Do I do this in code or is there a ...
0
votes
1answer
183 views

Set the value of a radio button with the controller in javascript

I would like to do something simple but I think it is not as simple as I though. I have a form with a radio button field (salutation field in the account) and I would like to auto fill the value when ...
1
vote
1answer
39 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
41 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
34 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
104 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
40 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
155 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
421 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
23 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
60 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
34 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
19 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
35 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
18 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
106 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
45 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
212 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
88 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
294 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
48 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
40 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
40 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
30 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
533 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
240 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
75 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
201 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
42 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
501 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
45 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
30 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
175 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
34 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
132 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 ...