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
1
vote
1answer
22 views

Opening VFPage or Lightning Component via button

We are looking into greater view customization for our standard object detail pages. For instance we'd like the user to be able to decide if they'd like the on page popup form, or the full page form ...
0
votes
1answer
9 views

Add new contact button in Einstein Activity Capture

Hello, I would like to add the "New Contact" button in Einstein Activity Capture on the user record. Currently, there is only have the "New Lead" button and I don't know what I ...
0
votes
1answer
69 views

How to dynamically disable buttons inside lightning:datatable in Lightning Web Component

I have a lightning:datatable with two buttons for onrowaction. Datatable shows Order Items. I want to dynamically disable ALL buttons (including "Add" and "Remove") after button &...
0
votes
1answer
179 views

Can we change background color of a disabled button in lightning web components

Example: I understand we can achieve by using slds button base component but any other way directly to achieve through lwc. <lightning-button label="Neutral" title="My Title" ...
0
votes
0answers
30 views

New Event button visible on top of the page even when not added to layout

In one of my sandboxes [Let's call it Sandbox 1], the 'New Event' button was added on account layout in the section 'Salesforce Mobile and Lightning Experience Actions'. At that time, the button ...
0
votes
1answer
163 views

Disable/hide a button based on a condition in apex

I have a created custom button in the Case object. The content source is Visualforce Page. When I click that button, an apex controller will be triggered. I perform some operations and update the ...
0
votes
0answers
24 views

How to insert data text field [number datatype] to database using javascript

below is my interface. My question is when the user insert a number in the field, may I know how to posh it to the database? Here is my code {!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}...
1
vote
0answers
44 views

"The value of a parameter contains a character that is not allowed or the value exceeds the maximum allowed length"

I'm getting this error when trying to override standard button of a custom object that is part of a managed package: "The value of a parameter contains a character that is not allowed or the ...
0
votes
2answers
521 views

Pre-populate Lookup field when creating a new record with Lookup record's name

Not sure if this is possible, but I'd like to be able to prepopulate the value in a lookup field when creating a new record. Specifically: I have a lookup field to a custom Office object on my ...
1
vote
1answer
60 views

Show records based on multi picklist value on VFP with Search button [closed]

Please can you check my code and tell me where I have gone wrong? Object Name - course_master__c, multipicklist field name - course_name__c. I want to create a SEARCH button based on the multipicklist ...
0
votes
1answer
57 views

Use same method in before insert Apex code and in button

Maybe a simple question: is there a way I can use the same method to create/update records in a before trigger and in a button? I have an Apex class. Let's call it Stuff.apxc. public class Stuff { ...
0
votes
1answer
46 views

Error when using button - link to other

For some reason I can't get a URL to open from a button. I'm using a code to pull through the a URL from a data extension, each email recipient will receive a unique URL. I can see that the code is ...
0
votes
0answers
41 views

"Create Follow-Up Event" button not visible despite it is on the page layout for Task object

As an andministrator, when I create a Task of certain record type, I can see the "Create Follow-Up Event" button. But when I login as another non-admin user I can't see the button The non-...
0
votes
0answers
77 views

Overflow of button menu in Aura component

team, I have a problem, cause I want show a scroll when the number of items is more than 5, but I can do this with SLDS: <div class="slds-button-group" role="group"> <...
0
votes
1answer
170 views

Is there a way to make button groups within a lightning web component responsive?

I would like to know if it is possible to change the way button groups appear based on the size of the browser window. Below is a screenshot of a small component that I have. The buttons themselves ...
0
votes
1answer
44 views

Remove Role/Role and Internal subordinates from Manual Sharing button on a record

When clicking the Sharing lightning button, I am able to see many different options for sharing. User Portal Role and Subordinates Role Role and Internal Subordinates Role, Internal and Portal ...
0
votes
0answers
37 views

Set two buttons next to user input in Visualforce Page

I am building a visualforce page which is a form to create a record in a custom object. The form is like this: I need to allign next to recipient field two buttons, a search and a clear. I tried ...
0
votes
1answer
113 views

How to change variant of a button in datable onrowaction lwc

HTML <lightning-datatable data={data} columns={col} wrap-text-max-lines="2" key-field="id" class="lowerTable" hide-checkbox-column="true" ...
1
vote
1answer
416 views

How to use URL hack in lightning to clone all fields EXCEPT recordtype, which i want to change

I need to create a custom button that clone's a Lead record, and prepopulates all of the fields, EXCEPT that it needs to create it as a different record type. Here are a couple things I've tried for ...
0
votes
0answers
79 views

Live agent button - Can we change the default label 'Chat with and expert' from salesforce Setup?

We can change the label of the live agent by using the following code: embedded_svc.settings.defaultMinimizedText = "Let's talk"; We want to know if it's possible to change this text on ...
0
votes
0answers
16 views

LIst view button Lookup custom

On List view of Case object I need to have a button called "Escalate". As I Select some records from list view and click on that button, it should redirect open a change that allows me to ...
0
votes
1answer
35 views

Why is the button icon not displayed?

Here is the code of my html file in LWC: <div> <lightning-button label="Update" onclick={connectedCallback} class="slds-button_icon"> <svg class="...
0
votes
0answers
28 views

Add button next to field

Is it possible to place a button/action next to salesforce field in a page layout in lightning.
0
votes
2answers
1k 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
1answer
36 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
86 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
27 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
8 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
82 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
338 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
26 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
124 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
210 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
34 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
101 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
44 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
1answer
182 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
322 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
1answer
5k 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
564 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
88 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 ...
1
vote
2answers
424 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
21 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
127 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
601 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
74 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
146 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
1answer
164 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
264 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
420 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 ...

1
2 3 4 5
8