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
1 answer
39 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 ...
user avatar
  • 93
0 votes
0 answers
19 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 ...
user avatar
-3 votes
1 answer
25 views

Need to populate Account Name when Flow runs from Account Detail Action Button for a task [closed]

I have a task screen flow that runs just fine from task action button and assigns account. I need to have an Action button to run this flow from the Account details page header and still have it ...
user avatar
  • 1
0 votes
1 answer
83 views

Aligning Footer Button to right in Lightning card

I am working on dashboard screen. I have a lightning card which where I want a button on right side inside a footer. Below is the code I am using. But When I am trying to align the button inside ...
user avatar
0 votes
0 answers
12 views

Use a standard button in lightning aura components

I have a lightning component that displays a table of related contracts and I want to be able to select from those contracts and be able to coterm. I know there is a standard button for Renew ...
user avatar
  • 37
0 votes
1 answer
27 views

align command buttons to center in Visualforce page

Command buttons have aligned to Right ,how to recenter them without using CSS? <apex:page standardController="Contact" lightningStylesheets="true" extensions="...
user avatar
1 vote
0 answers
51 views

SSO button does not appear on Salesforce Cloudforce.com login page (with MS Azure AD as Single Sign On authenticator)

Does anyone recognize this situation and know of a possible solution? For my Salesforce login, I want to use Azure AD as a Single Sign On (SSO) provider. On Azure AD I have created the app on Azure ...
user avatar
0 votes
0 answers
10 views

sforce.one.createRecord is populating date field but not able to save it

I have a button that will clone the Provision record with some values via visualforce. The problem is that when I am trying to save the record SF doesn't see that I have value in the End Date field ...
user avatar
  • 5
0 votes
0 answers
94 views

Remove "New Lead" button from custom object page layout

I want to remove "New Lead" button from a page layout of custom object. This object is not related to Lead but the button gets displayed by default. I have checked the page layout and the ...
user avatar
  • 15
0 votes
1 answer
31 views

Chat (bot) invitation button

I'm having a hard time trying to setup a proper chat invitation button in order to replace the original 'Chat with an expert' text with a single image I have already loaded as a static resource within ...
user avatar
2 votes
0 answers
70 views

Is there a way to Listen Standard Cancel/Save button event of Standard Record form in LWC?

I am using NavigationMixin to navigate to Record create page as below: this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { ...
user avatar
0 votes
1 answer
74 views

Custom button of related list present in classic but missing in lightning

There is a custom onclick javascript button that is present in the related list layout of campaign object. but it is missing in lightning experience. need solutions on how to bring it and the button ...
user avatar
0 votes
1 answer
21 views

Quote Status to not update (be disabled) after is Accepted or Denied

Once the Quote status changes to accepted or denied I want to make sure that it won't be allowed to change again. Can it be done with flow? Any suggestions how can I make that happen?
user avatar
0 votes
2 answers
145 views

how to change a button variant which is in for loop in LWC

HTML: <template for:each={accdata} for:item="acc"> <lightning-button key={acc.data.Id} class="slds-theme_brand" value={acc.data.Id} variant={...
user avatar
0 votes
0 answers
24 views

custom button to start chat in communy

Is there a way to controll with Apex the Embeded Service chat button (the on tat launched the prechat), in the community page? I need to exclude some specific users of using the chat. Can't use ...
user avatar
0 votes
2 answers
345 views

How can I disable a LWC button only if the Omniscript fields are empty?

In Step 1 on an Omniscript, I have two text elements: "neighborhood" and "city". There is also the "Search" button made in LWC. I need it to be disabled only if the ...
user avatar
  • 123
1 vote
3 answers
896 views

How to color the utility icons in lightning datatable in LWC?

I have the below data table where I have two icons. I want to change the color to blue instead of grey. The variant property is not helpful. How do I do that? HTML: <div class="myTable"&...
user avatar
0 votes
2 answers
62 views

Issue with returning a URL from wire method in LWC

In the below method, the getApprovalOrders returns the appURL which then calls this.handleLoad(obj.Id); to get the approval request Id to return the URL ${baseURL}/detail/${this.approvalId}. The issue ...
user avatar
0 votes
1 answer
22 views

Button showing/hiding parametr LWC [closed]

Hi :) I am new in programming and salesforce. and now i have a problem with buttons. I want to one click it and show a param from js (data). (company.date schould show just when I will click button) ...
user avatar
  • 13
0 votes
0 answers
627 views

Override standard "new" button in salesforce using LWC component

we have a custom visualforce page override on "new" button.we are implmenting lightning and in lightnng we are trying to use LWC component whch will redirect to standard new record page. the ...
user avatar
  • 1
1 vote
1 answer
42 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
  • 605
0 votes
1 answer
446 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 &...
user avatar
0 votes
1 answer
743 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" ...
user avatar
0 votes
0 answers
103 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 ...
user avatar
  • 50
0 votes
1 answer
311 views

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. If I click that button once, that should be hidden. I referred to some links and they do disable the command ...
user avatar
  • 129
0 votes
0 answers
56 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")}...
user avatar
1 vote
0 answers
146 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 ...
user avatar
  • 11
0 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
105 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 ...
user avatar
0 votes
1 answer
137 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 { ...
user avatar
  • 1
0 votes
1 answer
83 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 ...
user avatar
0 votes
0 answers
99 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-...
user avatar
0 votes
0 answers
117 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"> <...
user avatar
0 votes
1 answer
363 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 ...
user avatar
0 votes
1 answer
107 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 ...
user avatar
0 votes
0 answers
78 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 ...
user avatar
0 votes
1 answer
317 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" ...
user avatar
1 vote
1 answer
745 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 ...
user avatar
  • 27
0 votes
0 answers
143 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 ...
user avatar
0 votes
1 answer
136 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="...
user avatar
0 votes
2 answers
3k 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"...
user avatar
  • 15
0 votes
1 answer
68 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 ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
0 votes
1 answer
167 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="...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 321
0 votes
1 answer
44 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?...
user avatar
  • 29
0 votes
1 answer
341 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 ...
user avatar
0 votes
1 answer
61 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 ...
user avatar
0 votes
1 answer
207 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.
user avatar

1
2 3 4 5
8