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
2answers
37 views

How to Show/Hide button based on Profile in Salesforce LWC?

I have develop LWC component which is normally used by normal users. In that lightning web component button is there as below. <lightning-button slot="actions" label="Deactivate"...
0
votes
0answers
18 views

Installed package overrides standard button: how to avoid that

I hope someone can help with my issue. Following the problem i am having: I have installed a manage package in my org. This package comes with a case tab. So now, when I go to my case and I click on ...
0
votes
0answers
12 views

Put Lightning:button inside a COMPONENT in AURA [closed]

How can I put this button in the place that I point out in this image? Here is the code: <c:pdfGenerate showSendButton = "false" servletData="{!v.url}" parentRecord="{!v....
0
votes
1answer
21 views

Is it possible to set up JavaScript to capture when a button is clicked that's from an external site iframe?

Have an iframe on a Visualforce page that's src is from an external site. The iframe has a button that's used to send a recording off via email from that external site. I'm trying to see if it's ...
0
votes
0answers
16 views

How to add standard button to lightning component?

I create custom highlight panel by using aura component because I need to show/hide by complicated condition. This custom highlight panel can add custom button by code like these <aura:...
0
votes
0answers
17 views

Using Image Upload LWC to build Flow

I want to build a LWC to run in a flow, that will upload an image in Flow Builder and then display the image on the flow to use as a navigation button. Any idea on how I can build this so the image ...
0
votes
0answers
7 views

Need to default the new event AssignedTo field to a public calander

I have created a public Calander and I want that to default to when the new event button is selected The AssignedTo button should point out to calander and the public calander created must be by ...
0
votes
1answer
24 views

How to add a search button with a logo?

I want to add a search button to the form, like in the screenshot below and I have the following code that I found in the documentation. <aura:component> ... <div class="...
0
votes
1answer
73 views

Receive Alerts button in Custom Object Record Detail Page

I have been noticing this Receive Alerts button when I am editing a custom object's standard page layout. But when I view a sample record page, it is not displaying. I am just wondering its real ...
0
votes
1answer
24 views

Can I set up a way where users allowed to create Opportunities only from Contacts?

My initial idea was to hide - New - button from the Opportunities recent list, its already hidden on the Account page layout, but I'm starting to doubt that's the right way, what approach should I use?...
0
votes
0answers
45 views

Can I remove the hover effect on my lightning close button?

I create a close button like this: <button class="slds-modal__close slds-button slds-button_icon slds-button_icon-inverse" onclick={handleClose}> <lightning-icon icon-name="...
0
votes
1answer
66 views

How to limit the height of a button in a lightning-datatable?

My lightning-datatable has a column that is a button, variant 'base', which causes all rows to be unnecessarily high. Because it is of variant 'base', it is shown as a simpel text link, so the height ...
0
votes
1answer
23 views

How to manipulate standard button from a custom object?

I'm having an issue with standard button on my custom object. I have a standard button "Clone" and i would like to manipulate it through my apex class but i can't find a way to do something ...
0
votes
1answer
33 views

How can we Remove “New” Button from Custom Object Tab View? [closed]

New ABC_CustomObject record should only be created through the VF page and not directly from the standard record page from the ABC_CustomObject Tab.
0
votes
0answers
32 views

Email Customer 'Verified' Button

I want to have customers verify their shipping address. To do this, I want to be able to send them a button in an email that says "Verify my Address". When This button is clicked by the ...
0
votes
0answers
14 views

Override List view Standard new button prompts for record type

If "New" Button Has Been Overridden, Don't Prompt for Record Type. How to achieve this without apex class using Lightning component? Or is there a possible workaround?
0
votes
1answer
50 views

Closing the VF/Flow doesnot refresh the page

I have a custom button which calls the VisualForce page from where a flow is called, we used this approach because calling the flow directly from the URL button was not refreshing the parent record ...
0
votes
1answer
58 views

Hiding Standard New button in Lightning Community

I would like to hide the standard "New" button in our Lightning Community for our standard Contract object - as we want to enforce external users to use a custom list view button that ...
0
votes
0answers
17 views

id in returl goes missing if there is any action performed in enhanced list

I have a custom object Event which is associated with Account object. There is an ‘Add Account’ button in the Account related list under Event details which opens a VF page which shows Account list ...
0
votes
1answer
705 views

LWC: Only enable button if options are available

I would like to enable/disable a button in LWC depending on if a list variable is empty or not. I know it's possible with a formula in Aura, is it doable in LWC? I have tried the below, but it doesn't ...
-1
votes
2answers
148 views

How to merge the header cells of the .csv file when exported on the button clicked by using lightning web component and apex code

I need to downlaod the data to .csv file by clicking on the button. I'm using lightning web component and apex class for doing this. But now I want to merge few of the header cells of the .csv file ...
-1
votes
1answer
42 views

How to create a detail page button that captures the record Id and it will trigger the lightning web component in a new App page [closed]

Lightning Web Components: How to create a detail page button that captures the record Id and it will trigger the lightning web component in a new App page. We need a solution that doesn't involve the ...
0
votes
2answers
144 views

Format CSS for LWC Component within Aura Component

I have a a LWC component displaying within a Aura Component. The LWC is the "Create Jira Ticket" button, and the Aura Component contains all 4 of these buttons: I would like the "...
0
votes
1answer
20 views

Visualforce behaviour when expections are caught

I made a really weird discovery and i wanna ask if this is true and how to handle those situations. If a VIsualforce page invokes an Apex method via commandButton or acionFunction, if an exception was ...
0
votes
1answer
44 views

Lightning Component in Flow - How to disable Next Button?

I have a simple flow with a Lightning Component, I need to not allow the user to click to flow button until he click on a button in the lightning component itself. Is it possible to do that ?
0
votes
2answers
85 views

How to use IF - ELSE function in URL Button

I'm trying to create a custom clone button in the opportunity object. {!IF( ISPICKVAL( Opportunity.Type , "New Business") , "/{!Opportunity.Id}/e? clone=1&retURL=%2F{!...
0
votes
1answer
36 views

Hide 'New' Button on Recently View from Opportunity Page

Is it possible to hide the New (Standard Record creation button) from the Recently view of the Opportunity page? Else is there any way we can customize the New button (Only Recently view not Other ...
0
votes
0answers
68 views

How to set the URL for “Login to Community as User” button

When I click on the "Login to Community as User" button, it takes me to this odd URL that doesn't exist any longer. I'm assuming it was configured to be so by a previous admin. Where do I ...
0
votes
0answers
148 views

Clone Case in Lightning

I am trying to use the Out Of Box Clone button in lightning and looks like it auto populates all the fields from the Parent Case to the newly created case but not the parent Case field. The Parent ...
0
votes
1answer
95 views

Two Questions Concerning Standard Buttons on Search Layout Recently Viewed List (i.e. Add To Campaign)

I am working for a client using a test org (The client also has a Stage and a Production Org). I need to add the Add To Campaign button to the Recently Viewed List in Test org and Stage org. I noticed ...
3
votes
1answer
130 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
103 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
21 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
392 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
33 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
13 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
60 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
104 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
3k 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
99 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
81 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
2k 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="...
1
vote
1answer
204 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
57 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
954 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
72 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!
1
vote
2answers
3k 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
1answer
831 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) ...
5
votes
2answers
810 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
2k 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. ...

1
2 3 4 5
8