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.
416
questions
0
votes
1
answer
25
views
Is this possible to control visibility of buttons add products and edit products on Order products related list?
The only solution that we have found so far is to hide two buttons altogether by leveraging Show list view action bar and having two duplicating related list section, one hidden under custom ...
0
votes
1
answer
46
views
LWC - New Correspondence Modal is not working
I have following code for my LWC component. It does not open modal window when I click "New Correspondence" button. I reviewed code so many time and couldn't find what is the issue here.
Any ...
0
votes
1
answer
70
views
Toast Message on Manual Case Creation using New Button
Whenever I am creating a case in Salesforce manually the toast message is showing the url case id, But I want to show the Case Number.
I have searched and haven't found any without code solution.
...
0
votes
0
answers
20
views
Detail Page Button redirecting inside Salesforce Organization
Context :
We have created an automated system that allows us to retrieve the ID of each Slack message, "LastSlackMessageId__c", which allows us to complete a field "SlackPermaLink__c&...
0
votes
0
answers
93
views
Navigate to LWC page from a custom button on an object using Lightning:UrlAddressable
I want to open a LWC page (a form) in a new page when clicking on a custom URL button on a standard object page. The issue is I don't know what the button URL should be, and how to properly wrap it ...
0
votes
1
answer
42
views
Changing the layout of the standard button for the custom object
there is a change owner button standardized by salesforce. They want to add another checkbox on the layout of this button. How can I add this field to the layout of this button? Note that It shouldn't ...
0
votes
2
answers
98
views
Can't create Quick Action or Button in ActionPlanTemplate object
I've been struggling with creating an Action/Button or Link in ActionPlanTemplate object.
I have access to all permissions I could find on internet:
Permission Set Assignment: Action Plans
Permission ...
0
votes
0
answers
210
views
Back button keeps re-executing my flow
I'm trying to prevent re-executing a flow when the back button is clicked in the browser after starting a flow via quick action. I've seen this link ScreenFlow when launched from QuickAction, is ...
0
votes
0
answers
88
views
Remove or Update 'Reply' button in Email Message Page layout
When I click on 'Reply' button in Email Message record, it opens /_ui/core/email/author/EmailAuthor page. Here, I want to populate cc field. I am able to do that in a custom button by sending the ...
0
votes
0
answers
115
views
Action buttons are not visible in Task related list in lightning experience
I created a new object called Main Task and created a lookup on Task(Activity) to make a relationship between Task(Child) and Main Task(Parent).
I added task related list(Sub Tasks) into Main task ...
-1
votes
1
answer
87
views
How do I add a link to this button?
I've created a banner image with a text and a button using CMS, but I couldn't find a way to add a link to the button. Open to any suggestions, thank you!
1
vote
1
answer
215
views
The elusive 'Delete' button on "Individual Application" (Grantmaking)
We're in the process of implementing Grantmaking. Part of the package includes an "Individual Application" object. This object doesn't have any "Delete" button (we tried ...
1
vote
0
answers
141
views
How do you create a List Button for Related Records with Default Values found in a related opportunity?
I am tasked with creating a list button on the Account object for the related opportunities list.
The record that needs to be created needs to have other default values that are found in one of the ...
0
votes
0
answers
21
views
Conflict of Standard button override
InTesting==>
Firstly, we have users who use both Lightning and Classic.
On the account object, we have a lightning page for lightning users and vfpage for classic users. To achieve a new record ...
0
votes
0
answers
390
views
Is it possible to throw error message on button click? (Managed package button)
We have a custom button that came with the installation of a managed package. We are using this custom button on a page layout to open a new page with a PDF. We want to display an error message when ...
0
votes
1
answer
893
views
Proper way to limit a button height in LWC
Despite getting more savvy on all the functional capabilities of LWCs, I am still totally lost on the proper way to apply styling.
This lightning data table is displaying what I need, but for some ...
0
votes
2
answers
470
views
Use aura attribute to define button background color
I am wondering if it's possible to use an aura attribute to set the button background color of a button.
I was able to statically set the background color using CSS and by giving the button a defined ...
0
votes
3
answers
6k
views
Remove Focus Around Buttons on Click
I have a button named 'Apply Filters' and onclick of that button I am filtering data.I want to remove focus from the button once we are done clicking.
Once the button is click only on the click the ...
1
vote
1
answer
478
views
LWC - render component onclick event
I have a lightning button and I have an instance of js Date class.
When I click on a button I want it to to show me a date that was week before (subtract 7 days).
Here is my .html file:
<template&...
0
votes
1
answer
197
views
Rearrange the position of Follow button on Lightning Page layout
Quick question, can we move/rearrange position of standard Follow Button? I do know about Hide/Unhide, here i just want to move its position from start to middle or bottom. if its not possible, can i ...
0
votes
1
answer
331
views
Task in Activity Timeline
In this new task in the RelatedTo, I have different objects(lookup relation given from task to each of the objects). This field RelatedTo I have to remove some objects but it is actually non-editable.
...
0
votes
1
answer
406
views
User with Minimum Access Profile/Permission Set Cannot See Any Buttons on Object Pages
We recently created a new profile cloned from the Salesforce Minimum Access profile and added the rest of the necessary permissions for the users via Permission Sets/Groups.
We noticed the users with ...
1
vote
3
answers
3k
views
LWC buttons are not visible in Salesforce mobile app
Is there a way to make LWC actions visible in mobile app? The LWC actions which are visible for desktop are not visible in mobile.
0
votes
0
answers
225
views
Autopopulate a field from a Detail Button URL
I have a Detail Page Button with a URL.
It resides on the Case object and creates a custom object record.
On the custom object, there is a lookup to the case object. I would like
the CaseNumber to ...
0
votes
1
answer
999
views
How to Create URL Link Button for custom objects to pre-fill fields when creating new record
I'm trying to create a 'New' button using the Link button with URL. This is for my custom object that I need to pre-fill when the New button is clicked. For example, I have CustomObjectA that has a ...
1
vote
2
answers
3k
views
Conditional Criteria on Lightning button disabled attribute doesn't work
Can someone help me how to make this work please. Wanted to disable the button based on the following criteria
//Diabled criteria - MUST be disbaled for all rows except for last row.
//Background - we ...
1
vote
2
answers
2k
views
Change text & prevent double click of LWC button
I need to prevent double clicking of a button. My goal is to disable it while im the DML operation is not completed. I am new with LWC so i don't exactly know how to proceed. Right now i just have the ...
1
vote
1
answer
856
views
Aligning button next to lightning card title
I am seeing so many examples to align lightning card title and a button. But all the examples that are provided are using slots="actions" in the button. But that will align the button to the ...
1
vote
1
answer
457
views
missing New Case Button, in groups
I cannot put the button to create a New case, on a public group layout. Just like here:
from this trailhead: https://trailhead.salesforce.com/content/learn/modules/lex_implementation_chatter/...
0
votes
1
answer
2k
views
Event.Target.GetAttribute returns null
I'm creating and displaying lightning buttons in aura components dynamically. On click of each button, I'm trying to fetch its index using event.target.getAttribute. I'm able to get it but ...
0
votes
1
answer
55
views
Unable to find action 'deleteItem' on the controller of c:RosterLineItemCmp
I am am really new to the development console on SF but I saw a pre-set resources and was messing around with it to make a few action button. All worked except for the one that I edited to remove a ...
0
votes
1
answer
372
views
Sending Adobe agreements on custom object relationship error
I have created a custom send for signature button for a specific Adobe Agreement in Salesforce lightning using the following:
{!URLFOR('/apex/echosign_dev1__AgreementTemplateProcess', null, [masterId =...
0
votes
2
answers
2k
views
Align button with inputs LWC
Hello everybody I am trying to align the next button with the inputs fields but I am not being able to do it. I have tried everything I can imaging but I cannot solve this issue. Could anybody help me?...
0
votes
1
answer
156
views
Fields, Buttons, Custom Links and Mobile & lighting Actions are not visible on User page layout for edit
I am trying to create a section but the field itself is missing in page layout. Please see image below. Missing required options on the left side to edit the page. Please help.
0
votes
1
answer
554
views
Lightning Datatable: How to replace button with a lightning badge in a row on click?
In each row of the lightning datatable, I have a button. I want to replace the button with a lightning badge when an user clicks on the button. I wonder, how to implement this?
JS
@track COLUMNS = ...
0
votes
0
answers
128
views
Create a validation for a managed lightning button on Salesforce Opportunity
0
Hi I am struggling to build this in SF.
I have tried to create a validation for a managed lightning button (I cannot edit its functionality), on the opportunity level.
The scenario is:
If the user ...
1
vote
1
answer
1k
views
LWC - NavigationMixin: Show A List Of Record Types (Closed)
Normally, when we create new record and if that record has different record types, a pop-up will show up with a list of record types when user click create new.
I'm trying to aim that with ...
1
vote
1
answer
187
views
Can I access related record fields in onclick javascript button?
I have to check a field of a related record in my onclick javascript button.
Is it possible? for instance:
var fieldValue = '{!Object__c.LookupField__r.Field__c}'
Or is the only alternative to call ...
4
votes
1
answer
648
views
Button sound in LWC
How can I add a sound to a lightning button in LWC?
import { LightningElement } from 'lwc';
const audio = new Audio("https://www.fesliyanstudios.com/play-mp3/387");
export default class ...
0
votes
1
answer
168
views
"Close Case" button is generating a script error
Please be gentle with me. I just barely started using Salesforce.
I hardly know where anything is. The person in my company that has been in charge of Salesforce is retiring soon and isn't showing ...
6
votes
2
answers
7k
views
LWC Button pass a value to the JS Method
I have a two buttons defined in my LWC
<lightning-button
variant="brand-outline"
label="Age"
title="Age"
onclick={handleClick}
class=&...
0
votes
1
answer
1k
views
How to hide elements inside a loop with button in lwc?
I have a list rendered in lwc, and I'm trying to develop a button that hides part of that list.
But I'm having problem, because when I click the button it is hiding all the lists.
<template if:true=...
1
vote
0
answers
2k
views
I have a button in LWC Datatable which will view cases, i want to switch between hide/view case using same button inside LWC datatable. How to achieve
Below is my component, when i click view case it shows all cases associated with the account, and should change the label to hide case. And when clicked on hide case it should hide the cases shown ...
0
votes
1
answer
318
views
Trying to Add Task Due Date on Add Task button
I am trying to add the Due Date(Activity Date) field to the button/action layout when a user clicks the Add button to add a Task on the Account page. I have looked all over where I thought it would be ...
-1
votes
2
answers
34k
views
How align button to the right?
how can I align this button to the right side?
I tried with "some classses" but it is not changing the place (working with lwc)
Html:
<template>
<lightning-card variant="...
0
votes
1
answer
618
views
Auto populate recipients in DocuSign Envelope using custom Lightning button
We have a standard object Opportunity and we have DocuSign linked to it. I need to customize a custom button so that it auto populates the DocuSign Envelope's Signer 2 using the Email address of ...
0
votes
1
answer
6k
views
Why can't I get rid of the 'X' button on my LWC Modal? I have a 'Cancel' lightning button so the 'X' is not needed
I have a LWC quick action on my Salesforce record page. I have added a 'Cancel' lightning button that will close the modal, so I need to remove or hide the big 'X' that shows up outside of the modal. ...
1
vote
5
answers
3k
views
how to deploy chat button type omni-channel using SFDX
I am trying to deploy my chat button with routing type omni-channel using SFDX and this error occurred:
You must select at least one skill.
what do I need to make?
0
votes
1
answer
927
views
LWC - Reset button for the component
Hey I have a LWC and want to put a reset button where it can reset everything in the component(such as uploaded files and etc.)
Currently have a retakePhoto function but it seems like it's not working ...
0
votes
1
answer
348
views
How to add a new button to the form of new opportunity?
this is the form where i want to add the "save & new quote" button .Is it possible to add a button to the New Opportunity flow? Once the form is felled , I'd like to have the option to ...