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
2
votes
1answer
46 views

LWC Button Icon Name is not displayed sometime during page load:

I have created below LWC Button with icon-name. <template> <div class="slds slds-p-around--medium"> <lightning-card class="slds-theme_shade wrapper&...
0
votes
1answer
32 views

Need To add the Button in the custom object List View Layout

I tried to add the button in the custom object list view. I've added the button in the search layout too but still the button is not visible in my custom object.can anyone help me how to resolve this ...
0
votes
1answer
18 views

Javascript button with multiple validations [closed]

In the javascript button below (Salesforce classic) I would like to allow users to proceed only if a selected status is active. Also for a specific user profile, I would like to not allow to proceed ...
1
vote
1answer
26 views

lwc Lightning Button not working

I have this simple conditional display of templates using lwc, but the lightning button I'm trying to use in order to change the view is not working. The button is shown when the component is rendered ...
0
votes
0answers
24 views

Updation using VF PAGE with Custom Controller

I tried to create the custom controller for contact object and to update contact record by click button (vf page). My Apex Class: public class fetchContact { public Apexpages.standardcontroller ...
0
votes
0answers
11 views

Adding button against each record in list view Lightning Experience

Can we add a button against each record in list view in lightning experience. Till the last few releases this was not possible in lightning experience Any workarounds would also be appreciated. One ...
0
votes
0answers
20 views

New Button Override Won't show VisualForce Page

I have a VisualForce page for products that I want to show when I click the New button (for example, from a list of all products). I have set the override for Salesforce Classic, and in classic it ...
0
votes
0answers
20 views

Prepopulate LWC component lookup field based on account where button is clicked

I need to replace new opportunity button on related list on account object with LWC component which I already done. But I also have account lookup field there. How can I prepopulate this field with ...
0
votes
1answer
63 views

Rounded corner Button not working in outlook [closed]

I'm making template emails in Marketing Cloud. I'm using the "button" content block to create my buttons that have a 30px border radius. It looks fine, but when I test it, in some versions of outlook, ...
0
votes
2answers
28 views

How to change Icon colour on the button

I am creating a button , where I have to put brand as variant and also need to get lead icon on it...I tried something like this but the icon doesnt appear because of the brand...is there anyway I can ...
0
votes
0answers
27 views

Custom clone button on opportunity not working in lightning

I have created custom clone button on opportunity.When i clone opportunity stage must be set to Shown interest, but stage is not changing in lightning.It is working in classic .In button/Link Url i ...
0
votes
1answer
218 views

How to have both Icon and text inside a button in LWC

I need to display a button which will display a text along with icon. I tried similar to below code <lightning-button label="Delete"> <lightning:icon icon-name="action:delete" size="...
0
votes
0answers
15 views

standard button not on related list after changing standard object name

We changed the standard object label to 'Order Profiles', yet on the Opportunity page layout, I am unable to add the NewQuote button (which was also re-labeled to New Order Profile) to the related ...
1
vote
1answer
30 views

Add Products button not visible on Classic opportunity page

When you edit an opportunity page layout, you will see these options for the products related list: And in the edit page layout this looks like: However, when you actually look at an opportunity, ...
0
votes
0answers
54 views

Issue with creating URL to invoke email functionality in Lightning [duplicate]

I keep getting this error: The value of the p3_lkid parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value ...
0
votes
1answer
188 views

Lightning button icon without border

Is it possible to remove the border on a lightning button icon when it clicked? <lightning:buttonIcon iconName="utility:dislike" variant="bare" onclick="{!c.downVote}" size="medium"" <...
0
votes
1answer
31 views

Is it possible to override “Change Owner” button from listview items menu?

As the title says: Is it possible to override "Change Owner" button from listview items menu? If so, how can be done? Thank you all!
0
votes
2answers
761 views

Get button name or Id in LWC?

Looking to identify which button was pressed through name or id as there are three buttons in my LWC that each trigger the same function. I've used a standard html button so i could style it in a ...
0
votes
0answers
14 views

Removed all buttons from Login flow,not able to login now

I was testing login flows in sandbox and I remove the navigation buttons.Then I check it is working or not so I applied to it on system admin.And now I can't be able to login and deactivate this flow. ...
0
votes
0answers
18 views

How to create link button from Account to Lightning page

I am trying to create a Quick Action Button/Link from a Lightning Account record page to a custom Lightning page which passes some query string values, for example: /lightning/n/myLightningPage?id={!...
0
votes
1answer
113 views

How do I make the button size the same width regardless of the content length in LWC?

I have written up some code in Playground but isn't working as I expected. I want to make the buttons in LWC the same size as in picture below (which in turn will naturally make the spacing the same) ...
3
votes
1answer
351 views

Dynamically changing lightning button icon name with setAttribute not working

I'm trying to change the icon of a lightning button icon but the image isn't changing however I see that the attribute is being updated. this.template.querySelector('#'+event.target.id).setAttribute(...
2
votes
1answer
856 views

Opening the VF page in a new Tab Lightning

We are converting a VF Page from Classic to Lightning and this VF page called from the button in Classic is like So when the button is clicked in Classic it opens the VF page in a new pop up window. ...
0
votes
1answer
25 views

Edit button override saves, but does not show on record detail page

I have created a custom lightning component that overrides the standard edit button on opportunities. As of now I am just trying to get it to function like the standard edit functionality, but there ...
0
votes
1answer
319 views

how to display the button inside the input in lightning

i am trying to achieve this, placing the search button inside the input. Onclick of search icon, i need to invoke other functions. How to make the search icon acting as button and invoke the js ...
0
votes
0answers
23 views

How to auto populate CPQ Quote in Email Message object Related To lookup field?

I have created CPQ Quote in my edition. Based on my requirement i need to send listed Quote data in selected Template using Email Message. Once clicked save & Email Button in Send an email screen ...
0
votes
0answers
30 views

Button to Launch Multiple URLs

I have created a button on the opportunity that launches a URL in a new window (i.e. https://test.com/launch/{!Opportunity.Contact_Name__c}). Is there a way instead of just launching a URL associated ...
0
votes
0answers
14 views

Send email from opportunity contact role?

Is it possible to create a button on the contact listed in the Contact Roles related list on an opportunity? I want to send an email to that person and have the email show up on the opportunity page, ...
1
vote
0answers
37 views

Find column from event was fired

experts! I have LWC data table populated with data. One or more columns contain Button element. I want to show some 'master-detail' information by clicking this button. I tried to handle onRowAction ...
0
votes
1answer
21 views

Add a button in the recent account area

I would like to place a button in the "Recent Accounts" area in the Account home page: The closest I accomplished is to add a button in the List view area, I used an article in salesforce to place ...
0
votes
1answer
83 views

Disable button even after refresh of page/component [closed]

I have a button in my lightning component (aura), which will send out a notification to certain user. In helper and controler there are events for success and failed. In case of success, I want to ...
1
vote
1answer
719 views

Trying to center button on page

I have the following component code that I am trying to use to center a button on a page. It keeps showing left-aligned. I have tried using <center> tag and slds-align_absolute-center. ...
0
votes
0answers
36 views

How to use a Button to download a file in lightning?

I have an Excel/pdf file stored in the files section of Lightning. I would like to create a Button on a Custom object so that when any user clicks the button it downloads that file. How do I do this?...
0
votes
2answers
342 views

Hide/Show button base on Role

I want to be able to show and hide a button base on the user Role. I think using code can fix this problem. But I'm new to Salesforce. Im thinking of create a div and hide/show the button using "slds-...
0
votes
0answers
13 views

Identify theme of active tab whether it is lightning or classic

I am trying to redirect on a url based on the active theme by pressing a button it is running fine but when i have two tab opened at a time one is classic and other is lightning and when i am pressing ...
0
votes
0answers
11 views

Community page not loading after changing language to Chinese (Simplified)

I encountered the case that after changing language for community user to Chinese (Simplified) and login to community for the first time, I get 404 page ("Page not available"), after refresh and for ...
0
votes
0answers
20 views

custom button in lightning

<apex:outputLink value="/apex/AP_newbutton?oppId={!Opportunity.Id}">newbutton</apex:outputLink> This is my code. Here after clicking the button I'm getting a page with "newbutton" link ...
1
vote
0answers
31 views

How to differentiate when user clicked on New or Save & New button in salesforce Lightning controller?

I have overridden the standard new button using lightning component. In spite of this, when user is clicking on Save & New button on the edit screen, it is navigating the lightning component. I ...
0
votes
0answers
14 views

Trying to use validation rule on managed button

I am in the process of creating a validation rule in a managed button. I noticed that the button is managed and from searching within the trailblazer community I've learned that I need to remove the ...
0
votes
0answers
25 views

Icon is not getting displayed in display icon on in Lightning Experience Actions

Created button and added icon to button button. The icons are visible on classic quick action. But the icon is not visible when button is added to "Salesforce Mobile and Lightning Experience Actions". ...
0
votes
1answer
93 views

Lightning Component Button Showing in Related List - Move to Page-Level Action Menu

This question has a few flavors out there. This is NOT a duplicate of the closest question I can find since the accepted answer does not apply to my use case. I am trying implement a custom button ...
0
votes
1answer
94 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 ...
0
votes
2answers
245 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
12 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
34 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
183 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
86 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
41 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
2answers
3k 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
31 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

1
2 3 4 5
7