Questions tagged [list-button]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
4answers
17k views

List button doesn't see Visualforce page

I have the parent object Contract__c and the child object Risk__c. I have created a visualforce page for Risk__c and now I want to create a list button, which shows up on the related list on ...
5
votes
1answer
3k views

Query for a list of IDs using Dynamic SOQL from JavaScript

I'm trying to update multiple records and then send email notification using custom list button. For this I need to get few fields off the related list. One option would be traverse thru the related ...
4
votes
1answer
1k views

visualforce list button not working in Napili Community

Visualforce list button is working in lightning experience whereas the same button is not working in Napili Community.I have enabled Available for Lightning Experience, Salesforce1, and Lightning ...
4
votes
1answer
2k views

Populate Flow variable with Parent Id - from VisualForce page - launched by related list Custom Button

I have created a Flow which allows my users to insert multiple Currency_Detail__c records from one page. The Currency Detail records have a Master-Detail relationship with Opportunities. I have ...
3
votes
3answers
3k views

How to Pass in Checked Objects from RelatedList into VF and Apex Class Constructor?

I am currently trying to pass in checked objects from a salesforce related list from the Accounts Page, via a custom Visual Force List Button in order to instantiate my Apex classes based on the ...
3
votes
2answers
9k views

How to remove buttons on List View for Community?

We don't want to let our community users to use some custom buttons. Is there a way to hide or remove custom buttons on List View for Community?
3
votes
1answer
91 views

Custom Case Change Due Date button

I'm trying to create a button that would change the Due Date field of a selected case in a List View. I'm stuck on the URL, since this is a mass change type would there be a custom URL that would be ...
3
votes
0answers
670 views

Creating Pop up (modal) window from a related list button

I am currently new in Lightning component, I am trying to create a pop up (modal) of a screen flow from related list button. As far as I understand, the way to achieve this is by creating: List ...
2
votes
1answer
3k views

List controllers are not supported for Order Item

I am trying to create a custom EDIT ALL list button on OrderItem (Order Product) with content source as Visualforce page and am getting below error. I don't want to use standard EDIT ALL button as I ...
2
votes
2answers
5k views

Lightning modal dialog from a list custom button

Is it possible, from a related list, to have a custom button that opens a lightning modal dialog, as is the behavior of the standard buttons of these related lists? My research tells me that it isn't ...
2
votes
1answer
778 views

Clone record with its related list by clicking on custom button on that record ?

i have created one button on record top beside the clone button, when clicked, execute code that would make a new version record with the same name and append today's date on the end of the name to ...
2
votes
1answer
267 views

List button to be used in detail page button

I have a List Button on a custom object. I need to use that button in that object as detail page button. Please find the VF page that List button calls here. Page: <apex:page standardController="...
2
votes
1answer
31 views

Is there a way to use one button on object search results to assign different record types depending on profile?

We would like to have a New Account button on the search results page for accounts: We currently have a custom button (as you can see above) but it is opening the incorrect record type. What we want ...
2
votes
1answer
1k views

Workaround for URL Hack to prepopulate fields on standard page layout

As URL Hack is not Officially Supported by Salesforce. Is there a workaround for this without overriding standard pages with visualforce page or Ajax ToolKit? For example, if you click on the "New ...
2
votes
0answers
182 views

List view button in Lightning

I know this is not a new thing but wanted to put some more focus on it to get working solution I need to create a "List View Button" using pure Lighting (No VF Page at all). Till now I have tried ...
2
votes
0answers
77 views

Javascript Button only works for my login in sandbox,for others it throws error

I have a weird issue in my sand box. I had wrote a javascript custom button to open a tab in primary tab.But the weird  thing is this code only works in my Login only,for others in the same sandbox it ...
2
votes
0answers
516 views

How to create list button with in SF lightning interface?

I have list button on Contact search layout with vf page and set controller. It is ok for SF classic but in Lightning interface do not have check boxes for multiselect for the contacts even though ...
1
vote
1answer
681 views

Lightning Navigate to Create Record with Default Values not working

I want to add a button on the related list to create a new record with some prepopulated default value in the standard "Name" field. I'm looking at the release notes from Spring 2020 which ...
1
vote
3answers
2k views

How can Lightning components be opened from a list view?

I am looking to add a custom button to the Account list view that opens a Lightning component. How can I do this?
1
vote
3answers
14k views

window.location.href navigating to correct page but not updating URL

What Am I doing ? I have this JavaScript list button 'Create Record for RecordType X' on Object B (which is child to Object A) to navigate to the correct VF page "RecordTypeX_VF" with RetUrl of ...
1
vote
1answer
396 views

Query on Javascript get error Malformed_Query

I create list button OnClick Javascript Button on Lead. it will update the Is_Picked__c checkbox on selected record whenever i click the list button. but i still get MALFORMED_QUERY. Any thoughts? {!...
1
vote
1answer
382 views

Access API/Sobject name from List Button

I have a visualforce page that will be accessed via a List Button. This VF page relates to the case object and the list button will appear on several object UIs (opportunity, account etc) related ...
1
vote
1answer
429 views

OnClick JavaScript id issue

I am using a List custom button in Listview once I select the records through checkboxes then the script will call and get the list of id's and pass them to apex class methods, but at that point I am ...
1
vote
1answer
154 views

On-Click Button: Why is Salesforce passing in 'undefined' string value?

I am trying to auto-insert an array of Tasks based on the Accounts selected in the Account 'List View' tab. The tasks are inserting as expected, but instead of writing the Account Name in the subject ...
1
vote
2answers
307 views

List Custom button issue in Chrome

I am using List button in Listview as content source of OnClickJavascript, here am using three custom buttons one button is working perferctly. But another two buttons are not working in Chrome, these ...
1
vote
2answers
156 views

Lightning & Classic Hybrid List Button

Has anyone made a Lightning hack for a List Button that acts as a Hybrid for both Classic and Lightning? How'd you do it? Context: I'm running a pilot of some users on Lightning and I have an Event ...
1
vote
1answer
42 views

Is there a way to prevent List View buttons appearing in Customer Portal?

If I create a List View button that is really only intended for my internal users, that List View button also seems to be appear in the Customer Portal. For example, Test Button is valid for ...
1
vote
1answer
602 views

Linking List Button to visual force page not working

I'm trying to create a new Custom List Button which can redirect to a visual force page. The problem I'm facing is that the "Content" selector at the bottom of the "Custom Button Edit" page. There is ...
1
vote
1answer
564 views

How to update the child custom Object Picklist field values while creating the child record from Parent Object related list?

I have a Custom Object called Opportunity_carset.the related list of Opportunity Carset Object is Service. The Opportunity Carse Object has two fields. Model Version The Service object has some ...
1
vote
1answer
33 views

If I click list button 'sync', I want to move on to the view screen of the checked record

I want to check the record as shown in the next screen and move on to the checked record screen when I click the sync button. But the screen doesn't go over and it keeps stagnating. Here's is my Code ...
1
vote
1answer
24 views

Return to Initial List view when using a Visualforce Page and a Flow

We are using a list button that calls a visualforce page which execute a flow. Basically we want to delete specific cases from a list view in "Bulk". We want to know if it's possible to ...
1
vote
0answers
691 views

Add a lightning component to a related list on a record page layout

I currently have an object called related files that has 8 different object lookups and I have created a button for it that uses javascript to extract the record ID so just 1 button can be used for ...
1
vote
0answers
61 views

Detail button not saving the url to the related list section of the parent account

I am trying to add a list button to the related list section(custom Object) of Account page and upon save ,it should bring the focus back to the related list section Please find image below of the ...
1
vote
1answer
366 views

how to apply mass delete java script function for deleting specific record type in case

I am using mass delete list button.I am using following code for mass delete: {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} var selectedRecords = {!GETRECORDIDS( $ObjectType.Case)}; sforce....
1
vote
0answers
342 views

How to get list of selected OpportunityLineItem ids List Button VF - Salesforce Ligtning

We are migrating our development from Salesforce Classic to Salesforce Lightning. In Salesforce Classic having a development 'Mass Update' opportunity line item from Opportuntiy. Having custom list ...
1
vote
0answers
843 views

Prepopulate Name and lookup field value from related list new button

On a custom object, I've managed to auto populate the custom object's name field to a default value using below custom vf page code: <apex:page standardController="CustomObject__c" recordSetVar="...
1
vote
1answer
103 views

Not able to mass transfer records based on the condition

I need to have a list button used to assign the records to the corresponding queue based on the lead type. Here is my code . I dont know that part i have missed here. {!REQUIRESCRIPT("/soap/ajax/16.0/...
1
vote
0answers
4k views

Custom Button that opens a visualforce popup, is needed to be reused as List Button as well

I have a custom button on Account detail page that onclick javascript opens a visualforce page window.open('/apex/test_k?id={!Account.Id}', '_blank', 'height=600,width=600,resizable=yes,scrollbars=...
1
vote
1answer
158 views

Custom object has standard "List" action , how to get a "List" button onto the page layout?

I must be missing something simple. I have made a custom object, call it TestLog. If I click my TestLog object to see details, in the section "Buttons, Links, and Actions" I see eight items: Accept, ...
1
vote
0answers
1k views

How to clone record with its related list using custom clone list button in Sobject?

Clone record with its related list and update the picklist value i have created one button on record top beside the clone button, when clicked, execute code that would make a new version record with ...
0
votes
1answer
222 views

Why is Salesforce choking on the 'forEach(function())' function

Desired output: Loop through selected custom sObjects and insert child objects determined by a CELING value of the difference between the parent record's two date fields. Problem: The Button compiler ...
0
votes
1answer
23 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 ...
0
votes
1answer
269 views

Add "New" Button to Metadata Related list

We have some related MetaData objects in Salesforce. However, when I'm on the parent metadata record, I can't add a child record from the related metadata record. I'm thinking the only way I can do ...
0
votes
2answers
59 views

How to remove Assign to Volunteer Project button in Standard Contact List View Page

I logged in to my developer org and upon checking the standard contact list view page, I noticed a button named Assign to Volunteer Project. It suddenly appeared among the list of buttons when it is ...
0
votes
1answer
34 views

I developed a portal using salesforce lightning. In Desktop view having lot of options, but Not in IPAD view. Why?

I developed a portal using salesforce lightning. In Desktop view having lot of options, but Not in IPAD view. Why? Can you please help me Please check the difference of IPAD View and Desktop View ...
0
votes
1answer
33 views

Issue when trying to use custom list button

i am trying to create a custom object list button but i'm getting an issue "unknown constructor 'sendemailctlr.sendemailctlr()' Markup" visualforce page <apex:page standardController="...
0
votes
1answer
336 views

Disable a custom button on page after click

We have a button list button on Order (Bill Now Button). It opens a VF page and executes some actions. After clicking the button, it take a while to be redirected to the VF Page. Some users click it ...
0
votes
1answer
543 views

Remove Custom List button for only few users of a Profile

I have a Custom list button which needs to be hidden/removed for those users of a profile who do not have delete access. There are few users of the same profile who has delete access for that custom ...
0
votes
1answer
2k views

Custom list button throwing 'Insufficient privilege' when clicked on by user other than System admin profile

I have a custom list button on a related list under opportunity.On click of the list button, it takes me to a VF page. This works fine for the system admin, but when logged in as a user with non-...
0
votes
1answer
120 views

Not able to return visualforce page from custom List button

First of all let me explain why i am doing this.. my client do not want Action column (EDIT/DELETE) in related list so, i developed one visualforce and override it to original page layout.. Here is ...