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
0
votes
0answers
12 views

How do I stop oncomplete action on button if action throws error and display the error, on a modal VF page?

I have a modal VF component displayed over a VF page (opened as a result of click on a button on the underlying page), from which I enter a few criteria and then click a button to generate a VF PDF ...
-3
votes
0answers
24 views

Adding and Saving a new entry for a custom object [duplicate]

I have a custom object,named Product__c. And have a visualforce page with the list of products, apex class with some logics. The task is: I need to add two buttons - New and Save. New button will ...
-2
votes
0answers
37 views

Traffic Light button in Lightning datatable [closed]

I have a lightning:datatable wich shows/edits records of a custom object. In one of the columns I want a button that represents a traffic light, so it's default color is green, click on it and it ...
0
votes
1answer
12 views

Getting error while moving chat buttons from one sandbox to another through changed set. error : Required fields are missing: [RoutingType]

Getting error while moving chat buttons from one sandbox to another through changed set. error : Required fields are missing: [RoutingType]
0
votes
0answers
9 views

Call javascript function(which is there in visualforce) on click of custom button

I have a javascript function in a VF page, can I call this javascript function through custom button(created at object level). I don't want to rewrite this javascript at button level, I just want to ...
0
votes
0answers
19 views

Populate fields from Contact onto Opportunity when a “New Opportunity” button on contact is Clicked

I created a button on Contact which is supposed to create a new opportunity, populate fields and create an Opportunity Contact Role on Opportunity when a Sales Rep clicks on New Opportunity Button. ...
0
votes
1answer
20 views

Button Section Not Visible in Page Layout's Related List - Quote Line Items

I have a custom Object and from Quote Line Item I've created a lookup for my custom object and added it as a related list. For some reason I can't see the button section in the related list settings ...
1
vote
1answer
30 views

What happened to the “New Event” button in the mobile app Events screen?

My users are complaining that the "New Event" button has disappeared from the Events screen in the mobile app. As far as I know we are using the standard Salesforce mobile app. I haven't done ...
0
votes
1answer
31 views

How to a adress lightning button from parent component

I have a master lightning-component with a next button and a child component button with create. I want to a replace the create button from the child with the next button from the parent. I get the ...
0
votes
0answers
29 views

VisualForce Page - Detail Page Button - not displaying

I have a Detail Page Button on opportunity that open Visualforce page. From this Visual force page I can navigate through multiple Visualforce pages.That was working very well and without any changes ...
0
votes
0answers
13 views

sforce.console.getFocusedPrimaryTabId returns undefined value

sforce.console.getFocusedPrimaryTabId returns 'undefined' value. I am using the function in a Javascript button on Lead object to open a sub tab if the button is clicked in console. if(typeof (srcUp)...
0
votes
0answers
11 views

Open lightning component as well as VF page on same related list button

We have a custom VF page for a 'New Contract'. While migrating to lightning, we have created a lightning component for this 'new contract' VF page. There is a new contract button in the Account's ...
0
votes
1answer
157 views

ShowToastEvent notification is not displayed in LWC

I have a problem with Toast Event in Lightning Out App. I don't know why when I click on button "Show notification" - nothing happens. I want to see notification, but it's not showing. HTML file: &...
0
votes
1answer
14 views

Button should get clicked only once for each record

I created a Button from Buttons,links.The button is placed in the detail page,That button should get clicked only once for each record.How can this possible. Regards, Usha
0
votes
0answers
25 views

Add lightning rich text toolbar buttons from css

How can I use css to add toolbar buttons to the lightning:inputRichText editor? When I used css to modify the height of the editor window, I lost the color button from the toolbar. I was able to get ...
0
votes
1answer
197 views

SLDS Button refreshing entire page on click in LWC

I am just after a simple button icon to indicate a warning. I need it to pop up a tooltip on click of the errors. So I found <lightning-button-icon> which was just about what I needed. The ...
0
votes
0answers
33 views

Lightning Button which Resets the form (uncaught action)

I am currently working on a lightning component which takes the input from a user and let them submit or reset it. Upon submission, the data is fed to an external system and get the results of the ...
0
votes
0answers
37 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
10 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
19 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
19 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
31 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
94 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
21 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
108 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
22 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 ...
1
vote
1answer
53 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
43 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
37 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
342 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
184 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
33 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
578 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
103 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
218 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
70 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
306 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
1k 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
101 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
42 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
20 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
36 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
21 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
162 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
70 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
339 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
150 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 ...