Skip to main content

Questions tagged [button-overrides]

Override the behavior of standard buttons

Filter by
Sorted by
Tagged with
11 votes
1 answer
2k views

Overriding a standard button depending on whether user is licensed

I have Visualforce pages that I use to override the Contact Tab, View and Edit buttons. These pages are part of our package. The client would like users who are not licensed to use our app to be ...
George S.'s user avatar
  • 2,740
9 votes
4 answers
9k views

Lightning New Case action override

I have action override on New Case button which runs our custom component. As you know, we can create a new Case from different places in org, e.g. from related lists. When creating a Case from ...
jm.'s user avatar
  • 101
9 votes
4 answers
6k views

Lightning Component - Overrides 'New' Standard Action with different record types

I'm trying to overrides the standard 'New' action on one of my custom object. First of all, as you can see from the above picture, the 'Skip Record Type Selection Page' checkbox doesn't seem to work. ...
Martin Lezer's user avatar
  • 7,294
7 votes
2 answers
2k views

Can users edit VisualForce pages in a managed package?

I am building a managed package that includes a VisualForce page that overrides the Account Edit page (by overriding the Edit button). Will users be able to customize this page? I worry that if they ...
Neo's user avatar
  • 775
7 votes
2 answers
6k views

How to retrieve action overrides?

Question Is there any trick to retrieving action overrides via the metadata api? Background The docs seem to indicate this is straightforward, just use object dot notation and a type of ...
Ralph Callaway's user avatar
7 votes
1 answer
1k views

standard action button disappears after override

We have set-up a partner community for our customer where we have overridden the "new" button on account with a visualforce page (for "classic") and a lightning component (for "lex"). In the "classic"...
Nielsm's user avatar
  • 2,094
6 votes
1 answer
7k views

Override a standard "New" button to redirect to a VF page

I am trying to redirect the "New" case button to point to an intermediate page which will have 5 hyperlinks. These links will be pointing to the standard edit mode with some field values passed ...
Yash Mehta's user avatar
  • 1,515
6 votes
1 answer
19k 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 ...
gvgramazio's user avatar
6 votes
1 answer
6k views

How do I use the same Visualforce page to override view, new, and edit buttons on custom object

I have a custom Visualforce page for a custom object. I have overriden the new, edit, and view buttons to point to this page. I would like to dynamically change the look of the page based on what ...
fehays's user avatar
  • 730
6 votes
1 answer
1k views

which standard controller should be used to override Person account "New" and "Edit" Page using VF Page?

I am overriding person account standard Page with VF page. If I use standard controller as "Account" I am unable to get Picklist field values from "Person Account", If I use "Contact" as a Standard ...
user40138's user avatar
  • 948
6 votes
0 answers
428 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 ...
bobbyt's user avatar
  • 497
5 votes
2 answers
3k views

Adding validation rule to Close Case standard button

I have a requirement where a user should not be able to close a case if the case owner is a queue. For that I have added a validation rule which goes like this BEGINS(OwnerId, "00G")&&...
Yash Mehta's user avatar
  • 1,515
5 votes
2 answers
2k views

Use one VisualforcePage for multiple overrides

I'm using a VF page as a "dispatcher" to display different pages based on an object recordtype. <!-- OverrideCaseView If Case is a XXXX, show in the XXXXX user interface Otherwise, show ...
Benj's user avatar
  • 11.3k
5 votes
2 answers
13k views

Overriding Related list standard button with Lightning Component & prepopulate parent record field in form

Is there any way to override 'New' standard button with lightning component and refer the parent record as prepopulated value in record creation screen? I saw in some posts to achieve this using ...
shukla yogesh's user avatar
4 votes
1 answer
177 views

Generate Tab URL With Pure Visualforce

I have a custom Object called "Related Professionals" and I overrided the 'New' button to auto populate the "Name" Field with the Default text. This is the New button Override VF page : <apex:...
Nick's user avatar
  • 63
4 votes
3 answers
5k views

Unable to override default "View" action

I'm trying to override the "view" action of a custom object, but unable to do so (and getting some odd error messages in the process.) When the screen first appears, none of the three radio buttons ...
berry120's user avatar
  • 701
4 votes
2 answers
1k views

Overridden standard "New" button is not showing in community

We have one object whose standard "New" button has been overridden with visualforce page. It's working fine in Salesforce classic. I can see "New" button in related lists. In lightning community, i ...
Anil Meghnathi's user avatar
4 votes
1 answer
817 views

View override does not work in partner community

I have a lightning component that overrides the view action on Contact and redirects the user to the Account detail page. It works well in Lightning Experience and Salesforce1 mobile app but does not ...
DCBoy's user avatar
  • 901
4 votes
0 answers
334 views

Does defaulting save_new_url still work?

I see other posts that suggest populating the save_new_url will direct the user to a page other than the standard new for the record you are creating, but I can't get this to work. I go to this URL: ...
nikiV's user avatar
  • 403
3 votes
1 answer
12k views

overriding standard buttons with lightning components

I am trying to override a standard "New" button that appears when Case tab is clicked ,so i navigated to new button on the object and i see lightning component bundle is one way to override but when i ...
user2945545's user avatar
3 votes
2 answers
2k 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="...
David Geismar's user avatar
3 votes
1 answer
5k views

How to override and add visualforce page to the button

I already have in my Visualforce page the following: <apex:page Controller="CandidateController" > if I add to this: <apex:page standardController="Candidate__c" Controller="...
Nick's user avatar
  • 7,153
3 votes
1 answer
2k views

How to default lookup values for new records witth skuid pages?

Background I've overridden the new button for a custom object with a skuid page. When the new button for custom object is clicked from a parent object, I'd like the parent lookup to be populated. For ...
Ralph Callaway's user avatar
3 votes
2 answers
9k 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 ...
Piyush's user avatar
  • 43
3 votes
1 answer
241 views

Populate custom object custom fields on page load without ids

I'm trying to pre-populate fields on a custom object that I made. I tried passing the values through the url using a button link, overriding the default new button and providing the ids of the fields ...
Andrew's user avatar
  • 41
3 votes
2 answers
900 views

Override View with URL

Is it possible, via the API or otherwise, to override the View button of an object with a URL (instead of a VF page)?
Mossi's user avatar
  • 4,006
3 votes
0 answers
309 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" ...
cropredy's user avatar
  • 73.2k
3 votes
0 answers
798 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 ...
Ayush Goyal's user avatar
3 votes
1 answer
591 views

Custom url hack button not working

Could someone please review the following code and explain why this custom button is not working? <apex:page action="{!urlFor('/a0H/e? Name=[autoname] &CF00N3B000000TB2z={!Contact.Name} &...
Jake Schmitz's user avatar
2 votes
1 answer
3k 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 ...
Robert Sösemann's user avatar
2 votes
2 answers
45 views

Need assistance with a TestClass for a Page Routing Class

I am stuck trying to figure out how to test the following Class: This Class is loaded when a user clicks on a Case detail link and I have an override on View for the Case Object which loads a VF page ...
Jason's user avatar
  • 852
2 votes
2 answers
4k views

How do you access the user's choice for RecordType when using a lightning component to override the New button on a custom object?

I have a custom object with two different record types assigned to the standard user profile. We are using a Lightning Component to override the standard functionality of the New button, and this ...
Tylor Lilley's user avatar
2 votes
2 answers
487 views

Unable to Override (Related List) New Button? VF Page not selectable

Hope all is well. i am a newbie to visual force and apex and have looked at various documentation online. (Especially Visualforce in Practice, however i really need some SF expertise from the ...
Masond3's user avatar
  • 427
2 votes
2 answers
3k views

Override Related List's New button to open Screen Flow in a modal

I want to create a button on the related list which could open up a Screen flow as a modal.
SfdcBat's user avatar
  • 4,839
2 votes
1 answer
1k views

Overriding "New Event" button for Salesforce1 app

I have a overriden "New Event" button which points users to custom Visualforce page instead of standard page. It works in Salesforce.com web application. However, this does not work in Salesforce1 app....
justasd's user avatar
  • 1,463
2 votes
2 answers
54 views

Impact on the Standard Entity

If I use custom VF page to override the Save functionality @ Opportunity level, what will be the impact on the Triggers, VAlidation Rules and any other codelinked with the entity? In a nutshell, I am ...
user12434's user avatar
2 votes
1 answer
893 views

How to Override Opportunity View Link with a VF page for a certain profile?

I have a requirement where I need to override the Opportunity view and to redirect the user of a certain profile to a VF page instead of standard detail page. I tried something like this: Created a ...
LoveSalesforce's user avatar
2 votes
1 answer
136 views

Why does readMetadata() give me incorrect data?

I have a script that uses the metadata API to update the 'New' and 'Edit' action overrides for Account so those actions navigate to a couple of custom VisualForce pages. The script works. I can use ...
Neo's user avatar
  • 775
2 votes
1 answer
2k views

How to prepopulate custom fields by URL hacking?

I am able to copy and save a new custom object from a JS button in Account detail like this.. {!REQUIRESCRIPT('/soap/ajax/27.0/connection.js')} var fb=new sforce.SObject("Feedback__c"); fb.Name=...
MnZ's user avatar
  • 3,256
2 votes
1 answer
196 views

Controller extension on an archived task

So I have a VF page that is being used to override the Task View and Edit actions. <apex:page standardController="Task" docType="html-5.0" readOnly="true" extensions="myControllerExt"> &...
NSjonas's user avatar
  • 10.3k
2 votes
1 answer
510 views

How to override a standard link in Salesforce

i have to override a standard link in Home Page layout .My screenshot of Home page layout is i want to open my visualforce page when user click on link on left bottom Approve/Reject link.How to ...
mathlearner's user avatar
  • 2,151
2 votes
1 answer
300 views

View override fails when URL Rewriter is implemented

Problem: Using a URL Rewriter class causes failure of a View override page Background: We have a community portal with a custom Visualforce application. We have overridden the View action on Case ...
David Cheng's user avatar
  • 7,434
2 votes
1 answer
249 views

Need help in rendering pageblocksection depending on record type name

I am overriding the New Button on My custom object which is having different record types. I need to display different sections based on their record type. Right now I am rendering pageblock sections ...
Shobhit Saxena's user avatar
2 votes
2 answers
4k views

Standard Clone Button - Setting Field Values - Custom Button Or Something Else?

Need: Ability to Clone records, and set a value into a field during the cloning. In my specific case, I want to populate either a Lookup field with the ID of the record cloned from (so passing ...
AMM's user avatar
  • 4,724
2 votes
4 answers
4k views

Can I override Standard Save Button (with a visualforce page) on Standard page of a Custom object?

The requirement is to show some messages after Save. Messages would depend on the fields entered for custom object record. The best way which I figured would be to override the standard Save button on ...
marksalesforce's user avatar
2 votes
1 answer
1k views

Overriding "View" button of the standard Quote object

After developing a page to override the default View button of the standard Quote object, I noticed this is one of the only object that do not allow this possibility (or the only one?). I'm not quite ...
jpmonette's user avatar
  • 4,450
2 votes
2 answers
1k 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 ...
VarunC's user avatar
  • 6,040
2 votes
0 answers
260 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 "...
amit patil's user avatar
2 votes
0 answers
329 views

Can't see new record in Related List without refresh: actionOverride

Context: I'm building a lightning component to override the New action for a custom sObject, let's call it My_Object. My_Object has a master detail relationship with Contact (My_Object is the detail)....
Nathan Hinchey's user avatar
2 votes
0 answers
153 views

Override Opportunity New button with Visual force not populating account name from Related List after record type selection in lightning

I have overridden the opportunity new button with Visual force page and working all well in classic. But we enabled lightning recently and Opportunity new button is working properly but. In ...
Shekar's user avatar
  • 21