2022 Developer Survey is open! Take survey.

Questions tagged [button-overrides]

Override the behavior of standard buttons

Filter by
Sorted by
Tagged with
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
0 votes
1 answer
17 views

How to override the Tab Style of Account Standard Object using Lightning Component

INFO BELOW IS FOR VISUALFORCE but I need to override the Tab with a Lightning Component. Any idea how to do this? Create a Visualforce page with the below code(same as yours but without a tabStyle ...
user avatar
  • 13
0 votes
0 answers
26 views

View Account Hierarchy: Cannot override with visualforce page

I am trying to override the view account hierarchy button in a sandbox and I cannot override it. I have used a very simple vf page(instead of my original vf page) just to see if I can get anything to ...
user avatar
  • 41
0 votes
0 answers
16 views

Override standard save button to stay on listview for a custom object

How can I override standard save button (in Salesforce lightning)to create the record and stay on the listview, and not redirect automatically to record page? Any help would be great.
user avatar
  • 33
0 votes
0 answers
13 views

Override standard log a call button

We are attempting to implement a Visual Force modification of the Log a Call control for Activities in a Lightning Record Page. The modification of the page works well but we are having difficulty in ...
user avatar
1 vote
1 answer
47 views

How to redirect upon save of edited custom object

My requirement is that after save of a record of custom object (Workflow__c), the user is redirected to the home page. I have set the override for the View action on the custom object to be ...
user avatar
  • 368
0 votes
0 answers
80 views

Changing color of "Mark current status" button, in a <lightning:path \> Aura component

I've created a custom component to show the Case status path. And it is working as expected. But now they want to change the color of the "Mark current status" button. So far the ...
user avatar
0 votes
0 answers
51 views

Get "Clicked" Start Date Time On New Event Override Lightning Component

I'm working on a project which requires me to override the New Event action with a lightning component. The problem I'm running into is that I can't find a way to get the date/time that the user ...
user avatar
0 votes
2 answers
42 views

Overwritten new standard button how identify which function the user has used

I have successfully overwritten the "New" and "Edit" behavior of a custom object with a lightning aura component. Everything is working fine and if the user clicks the related list new button of the ...
user avatar
0 votes
0 answers
20 views

I want to override the Edit Page to set the default value

Hello, I want to modify the Edit Page as shown in the following screen and assign the default value as I want. So I want to modify Edit Button through Button Override, can I use the Edit Page with the ...
user avatar
  • 31
1 vote
1 answer
145 views

force:hasRecordId interface doesn't provide recordId from "new" button override

I have two custom objects (let's call them House and Resident). The House record page has a related list containing all related residents. I also have two lightning components (ResidentDetails and ...
user avatar
  • 155
0 votes
0 answers
13 views

How to stop redirect and stay on service contract page on editing a contract line item on sales console?

This issue is happening on the sales console only. I am wondering if is there a way to stop redirect and stay on the service contract page on editing a contract line item. While editing a contract ...
user avatar
  • 6,616
1 vote
0 answers
32 views

Overriding standard edit button in community cloud doesn't work even though all settings are fine (and other buttons overriding works fine)

Something weird is happening in our community site. We have the New and Edit standard button overridden for our custom object, so it can be edited in our custom component. Everything works fine, but ...
user avatar
  • 173
0 votes
0 answers
2k views

Calling LWC from Aura component, but LWC doesn't render when using standard button to call aura for the 2nd time

I'm fairly new to Aura and LWC altogether. I'm overriding a standard new button with an Aura Component and calling an LWC component from there. LWC component calls another LWC component from it. I'm ...
user avatar
1 vote
0 answers
50 views

How to I read url parameters in action override aura component?

I have overridden New action on my custom object with Aura component that launches flow. Standard new action was used with url parameter and input field was filled with default value by framework. Url ...
user avatar
  • 2,613
0 votes
1 answer
241 views

Using lightning:actionOverride and getting URL parameters of the clicked button (defaultFieldValues)

I have a New button override set to send all New requests to a custom Lightning Component. This works fine. However, I have several buttons with defaultFieldValues set to prepopulate fields. Since the ...
user avatar
3 votes
0 answers
113 views

$CurrentPage.Parameters.retURL null in Lightning but not Classic

Using the following VF page that is an override of the Task's Delete button (Goal : Prevent any but Sysads from deleting Case completed Tasks) <apex:page id="TaskDelete" ...
user avatar
  • 61.4k
1 vote
0 answers
120 views

Buttons, Links, and Actions not being applied to Community (since Digital Experience rename - 1/13/2021)

We have an override of our 'Edit' Action on the Case object. In the past, when using the 'Edit' Action, regardless of whether you were logged into the community or not, it would apply our override ...
user avatar
0 votes
1 answer
1k views

Cannot read property 'state' of undefined

I am new at coding and receiving an error "Action failed: c:NewMarketingTicket$controller$init [Cannot read property 'state' of undefined]" when accessing a custom LC button override when ...
user avatar
  • 13
2 votes
2 answers
607 views

Standard New button Visualforce Override shows blank page in Lightning Experience after Winter '21

We've been experiencing an issue just after Winter '21 that on objects that have been overridden by a Visualforce Page for New button, the New action only works first time, if users instead of ...
user avatar
  • 5,596
0 votes
2 answers
379 views

How does salesforce know what page layout to choose when creating a new record and is there a way to call this from a custom lightning component

As many other posts i've read, I am trying to override the standard "New" button in a related list with a lightning component so that we can auto populate some fields for a client. I want to ...
user avatar
0 votes
1 answer
43 views

Can I customize the "display as" toggle on a list view to always display all options?

In a list view, when you click on the "display as" button, it gives you the three options for displaying the list view. I wonder if there's a way to customize this so that the display as ...
user avatar
0 votes
1 answer
98 views

Is there any way to remove overrides for standard buttons by APEX code?

I'm developing the managed package, which contains some extended lwc form for new account creation. Reassign "new" button on account object is manual operation (after managed package ...
user avatar
1 vote
0 answers
124 views

Limit from Address for Email Action

Currently, in my Email Send Action, I have more than 30 options in the dropdown to select from Address. This is frustrating for our user who needs to scroll through all lists. I want to limit this ...
user avatar
0 votes
1 answer
399 views

Button Override - Redirect on Create of Custom Record

When a user creates a new record I want to either A) redirect them to a page that says "success" or B) redirect them back to the home page with an alert that says "success". I don'...
user avatar
  • 3,167
0 votes
1 answer
402 views

Force Redirect At the Conclusion of Flow

I have a Flow wrapped in a simple Lightning Component that I use to override the standard "New" button on accounts. I'm running into a couple of issues with the user experience. At the end ...
user avatar
1 vote
1 answer
452 views

Conditional Override of 'New' Button

I want to display the standard Salesforce page after clicking on 'New' button for some conditions and for others I want to override the 'New' button with a VF page. I am not really sure what should be ...
user avatar
  • 19
2 votes
2 answers
3k views

ConnectedCallback Isn't getting called the 2nd Time when New/Edit/View button is overridden with Aura Component which in turn calls LWC

I've an aura component that is overriding the Standard New button. The aura component in turn calls a LWC - which loads the custom record edit form. What I've noticed is - the first time the New ...
user avatar
  • 33
0 votes
0 answers
99 views

Prepopulate a Field via Button override of Clone button

I need to prepopulate the Cloned_From__c field on the case when a user clicks the standard clone button, the field should be the case that is being cloned. How do I prefill this field out before I ...
user avatar
0 votes
1 answer
763 views

e.force:createRecord not loading create screen - lightning Component

I've created a LC to override the standard new button on a custom object. The component uses e.force:createRecord to load the createRecord screen for the object All works fine when you use the ...
user avatar
0 votes
1 answer
54 views

New Button on Account overriden with Lightning Component

I have overriden 'New' button on Account with an aura component. So when a user clicks on New button , all the Account record types get populated. The issue is, user has access to only 2 record types ...
user avatar
0 votes
1 answer
31 views

How do I interrupt the NEW process, then return to it?

I've been asked to display a text message before creating a new opportunity. In my use case, a user clicks NEW, and before the New opportunity standard page opens, he views a message. That message ...
user avatar
0 votes
1 answer
292 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!
user avatar
  • 21
2 votes
0 answers
388 views

How to navigate to "Add Products" standard page from LWC?

Upon standard opportunity creation, a standard Add Products page is shown to the user(if the checkbox in Setup>Opportunity Settings is checked). However, we have overridden the standard opportunity ...
user avatar
0 votes
0 answers
70 views

Winter 20 - Custom Override Redirect Issue

When I create a new Account I have a lookup field to Contact with a custom aura component override for the “New” button. The issue I’m having is that when the user is creating an Account and wants ...
user avatar
  • 243
1 vote
1 answer
665 views

Winter 20 - change in behaviour - "New" button on Lookup search results

It seems there might have been an undocumented change to the behaviour in lookups in Winter '20? Previously, when clicking the "New" link at the bottom of search results, I'm pretty sure that a "New" ...
user avatar
  • 1,019
5 votes
1 answer
10k views

Overriding "New" with a lightning aura component: there is a way to make a popup that appear in the object home page?

There exist a trailhead on how to Build a Lightning Component to Override a Standard Action. Basically the final result is a lightning component that resemble the standard modal that appears when the ...
user avatar
1 vote
2 answers
782 views

Is there any way to override or hide the standard "Import" list view button in Lightning?

In Lightning, the Recently Viewed list view for a custom object has New and Import buttons by default: I would like to override or hide the Import button since our custom object has a custom import ...
user avatar
1 vote
1 answer
161 views

Ability to remove action overrides in Lightning whilst leaving them in place in Classic

The documentation states/strongly implies that there should be an ability to leave an action override in place in Salesforce Classic, whilst removing it in Lightning/Mobile: Remove Overrides for ...
user avatar
  • 1,019
1 vote
1 answer
312 views

deployed <actionOverride> but action not overriden

I am overriding the edit button with a lightning component, in my sandbox it works fine. See the metadata: when deploying I only deployed the section of metadata that I wanted to add, it looked like ...
user avatar
1 vote
1 answer
1k views

Overriding Standard 'NEW' button using Visualforce or Creating custom button and replace standard button

Using a Before trigger/ Workflow has not helped me fill in or provide a default value to a standard field(NAME) while saving a new record. I was asked to build a Visual force page and then override ...
user avatar
0 votes
1 answer
210 views

Prevent Opp Creation Without Contact

We're looking to ensure that every newly created opportunity has an OpportunityContactRole upon creation. To do this, we removed the New Opportunity button everywhere which would force reps to ...
user avatar
2 votes
1 answer
2k views

Navigate to overriden Standard New Page with LWC NavigationMixin

Many Standard New buttons in my apps are overriden using Aura components. The do some Apex and then redirect to the real standard new pages. I now migrated such components to LWC. Where I had this in ...
user avatar
0 votes
1 answer
607 views

Overridden button disappeared from related list in community

We want to override the "New" button for a custom object for our community, using a Lightning Component. So we went ahead and did that. The thing is, now the "New" button doesn't appear on the related ...
user avatar
2 votes
2 answers
860 views

Overriding new button in List view to point to custom apex page

I want to override my new action (button on listview) for a custom object with a link to a custom apex page. I have created an apex page with the following attributes : <apex:page showHeader="...
user avatar
1 vote
1 answer
1k views

Override Save Button in Lightning Modal

My goal is to override the save button to call out to an external service synchronously. I understand I have to create a custom VisualForce page or Lightning component (I'm going to use the latter). ...
user avatar
  • 35
1 vote
1 answer
274 views

How to remove `Save (Ignore Alert)` and `Save & New (Ignore Alert)` buttons?

I have created a duplication rule so that when a new lead record is created to notify the user if there is an already existing lead. When there is an existing and duplicated lead I need to forbid the ...
user avatar
  • 397
1 vote
1 answer
124 views

Unable to disable a Visualforce Override for standard buttons

I have installed an HR managed package, but I don't want to use their Visualforce pages on some objects -- I would prefer to use the standard Salesforce record detail page. I have edited the standard ...
user avatar
  • 385
6 votes
0 answers
259 views

Lightning component override for standard new button not always getting called

This may not be the best place to post this, but since Salesforce partner support has refused to look at the issue, saying it’s a developer issue that requires premier support, I’m posting here to see ...
user avatar
  • 487
1 vote
0 answers
169 views

Auto populate Account name on child object while click on "Save & New" standard button

I have created a custom object and created a Master-details lookup field to Account. While creating new records, there is an issue. When I click on New button, fill in all the fields and click on "...
user avatar