Questions tagged [button-overrides]

Override the behavior of standard buttons

Filter by
Sorted by
Tagged with
11
votes
1answer
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 ...
9
votes
4answers
3k 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. ...
7
votes
2answers
1k 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 ...
7
votes
2answers
1k 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 ...
7
votes
2answers
3k 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 ...
6
votes
1answer
6k 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 ...
6
votes
1answer
5k 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 ...
6
votes
1answer
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 ...
6
votes
0answers
163 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 ...
5
votes
2answers
2k 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")&&...
5
votes
2answers
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 ...
4
votes
1answer
169 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:...
4
votes
3answers
1k 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 ...
4
votes
1answer
847 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 ...
4
votes
1answer
528 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 ...
4
votes
1answer
716 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"...
4
votes
0answers
267 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: ...
3
votes
1answer
1k 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 ...
3
votes
1answer
5k 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 ...
3
votes
1answer
189 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 ...
3
votes
2answers
598 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)?
3
votes
1answer
408 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} &...
2
votes
1answer
9k 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 ...
2
votes
2answers
38 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
994 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....
2
votes
2answers
51 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 ...
2
votes
1answer
846 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 ...
2
votes
1answer
86 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 ...
2
votes
1answer
1k 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=...
2
votes
1answer
153 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"> &...
2
votes
1answer
438 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 ...
2
votes
1answer
124 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 ...
2
votes
1answer
365 views

Detect when user clicks cancel on createRecord modal

I am using sforce.one.createRecord() on a visualforce page. The visualforce page is then used as the override on the New button for a custom object. This works fine, except that I need to redirect the ...
2
votes
1answer
206 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 ...
2
votes
2answers
2k 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 ...
2
votes
4answers
2k 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 ...
2
votes
1answer
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 ...
2
votes
0answers
239 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)....
2
votes
0answers
121 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 ...
2
votes
1answer
507 views

Unable to get Console Tab Icon to appear using setTabIcon()

I have a VisualForce Case Detail page that is used in place of the standard case detail page via a Button Override. The page itself is a very basic custom page. I have some javascript code that uses ...
2
votes
0answers
334 views

Overriding the “Select Template” button in Email Author

Is there a way to over-ride the "Select Template" button in the Salesforce standard email author page with a custom visualforce page ?
1
vote
2answers
922 views

Override Standard Button - Enable different behavior in Lightning and Classic

We are migrating a section of the company to Lightning. We have some objects whose records open in custom Visualforce pages because we wanted to display information across multiple tabs. We achieved ...
1
vote
1answer
425 views

Prepopulate values

I have custom button on Opportunity.On click of button I need to pre populate values on contract with values from oppty.Once Contract is saved I need to populate Contract lookup on Oppty with the ...
1
vote
2answers
223 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="...
1
vote
1answer
2k views

overriding new button on custom object how to do you access the opportunity id

I'm trying to override the new button on one of my objects with a lightning component. If this object is being created on an opportunity is there a way to get the id of that opportunity? If you ...
1
vote
2answers
184 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 ...
1
vote
1answer
5k views

How to Override Edit button for Custom Visualforce page based on RecordID

I have Order form,where there are 3 types of Orders(OrderScan,OrderFill,OrderGet) for each of these i have created Visualforce Page for new Orders(By Overriding New button).Based on these Record types ...
1
vote
1answer
416 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 ...
1
vote
1answer
94 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 ...