6 votes
Accepted

visualforce list button not working in Napili Community

Visualforce list buttons are not supported in Communities. https://help.salesforce.com/articleView?id=community_builder_use_visualforce.htm&type=0
sfdc's user avatar
  • 13.6k
4 votes
Accepted

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

To enable a List Button, first define a Visualforce Page whose <apex:page> tag uses the standardController and recordSetVar properties. The former should use the child object on your related ...
Adrian Larson's user avatar
  • 149k
3 votes
Accepted

Lightning Navigate to Create Record with Default Values not working

Remove the line breaks. It's not called out in the release notes and examples always seem to show line breaks (for readability) but line breaks do not work. /lightning/o/CustomObject__c/new?...
Kris Goncalves's user avatar
3 votes

How can Lightning components be opened from a list view?

Bhawna is correct, you cannot call a Lightning Component from a List button directly. In the past, I have implemented something which may be useful in this scenario. Step 1: Create the component you ...
Mitch Spano's user avatar
  • 1,535
3 votes
Accepted

Query on Javascript get error Malformed_Query

update your query : sforce.connection.query("SELECT Id, Is_Picked__c,Last_Seen_By__c FROM Lead WHERE Id =\'"+records[0]+"\' LIMIT 1");
SFDC Learner's user avatar
  • 1,013
3 votes
Accepted

List View button flow Redirect Url

One thing you can do is you can override FINISH button from AURA/LWC component. Need to create custom AURA/LWC component drag drop in flow. Override the functionality of FINISH button from ...
Karan Sharma's user avatar
  • 1,187
2 votes

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

I think you should use the GETRECORDIDS function provided by Salesforce for just this sort of thing. It is used to select ids from any selected items in a list, be they a list view or a related list. ...
Caspar Harmer's user avatar
2 votes
Accepted

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

The GetRecordIds formula literally does what it says: it gets the list of Id values the user selected. If you want the account names, you have to use sforce.connection.retrieve or sforce.connection....
sfdcfox's user avatar
  • 481k
2 votes

Linking List Button to visual force page not working

You need to have a Visualforce Page which implements a StandardSetController for the object in question. So if it were a List Button on the Task object, you would use this markup: <apex:page ...
Adrian Larson's user avatar
  • 149k
2 votes

Lightning modal dialog from a list custom button

Quick Actions cannot be used as Related List Buttons: Upvote Idea here, so unfortunately response by Itai is not a complete answer. The best I have found is to give up on using a related list button ...
Benjamin Luehrs's user avatar
2 votes
Accepted

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

They're javascript variables, so they won't work in merge fields. You need to manipulate them via javascript to get the correct value. The first step is getting a Date instance. var startDate = new ...
Adrian Larson's user avatar
  • 149k
2 votes

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

The issue is shorted now , To update current page URL on navigation to other page, we should use "this.parent" for constructing URL. Thus, replacing window.location.href with this.parent....
Rajeev's user avatar
  • 222
2 votes

Custom Case Change Due Date button

I think you can take this approach. From your javascript button, launch a flow and pass parameters to the flow. In the flow, place a date field where user can select the date. Finally based on passed ...
Santanu Boral's user avatar
2 votes
Accepted

Lightning & Classic Hybrid List Button

We had a need for the same, and Sander de Jong's answer on another question led me down the right path: you'll need to wrap the whole thing in a URLFOR expression. Note that this also means you'll ...
Melanie's user avatar
  • 36
1 vote
Accepted

Passing record id In the List Button (URL type)

Onto the related list button you need to update the URL ParentObject.Id Like this URL --> /one/one.app?strRecordId={!CASESAFEID(ParentObject.Id)}#xyzuybnsbdbkfkfnsknfksfnlsfl== Hope this will ...
Karan Sharma's user avatar
  • 1,187
1 vote
Accepted

List button URL with default values to create a Task from a custom obj record related list

The issue is with your URL, to create a new task you should use:- /lightning/o/Task/new whereas you were using:- /lightning/e/Task/new to prepopulate other field values, you can refer this article ...
sanket kumar's user avatar
1 vote

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

No, There is no such customization available to customize the display as option in List view. You might have to override the list view page itself with custom components to make such customization.
sanket kumar's user avatar
1 vote

Remove Custom List button for only few users of a Profile

This is not possible if the users are all on the same Profile, except by removing the Delete permission from the Profile and using a Permission Set to grant the Delete permission to the relevant users....
Dave Humm's user avatar
  • 5,093
1 vote

Add "New" Button to Metadata Related list

Unfortunately this much needed button is currently not available. For now you have to create child CMTs from their corresponding pages. e.g. go to Custom Metadata Types, "Manage Records" for ...
Mossi's user avatar
  • 3,906
1 vote

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

This is known Summer20 issue, fix is in progress https://trailblazer.salesforce.com/issues_view?id=a1p4V000001pspcQAA
ashish borate's user avatar
1 vote
Accepted

Access parent record id from visualforce page called in custom list button?

I was able to access the Parent record Id using the below code. <script> $Lightning.use("c:LAPP_CreateReturnRequest", function() { $Lightning.createComponent("c:...
mohan's user avatar
  • 131
1 vote

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

There are many limitations for the salesforce1 app in compared to the browser version of Salesforce i.e. Lightning Experience. In the context of your question, here are some limitation:- Create a ...
sanket kumar's user avatar
1 vote

Issue when trying to use custom list button

Your controller class is written as a controller extension, which uses a constructor along the lines of public SendEmailCtlr(ApexPages.StandardController controller) { That seems to be correct, but ...
David Reed's user avatar
  • 92.1k
1 vote

Disable a custom button on page after click

By making the content Source of custom button as 'Execute JavaScript' and calling your VF page then can help. Code for the button: this.disabled = true;<span> </span><font color="#...
Khushboo Dua's user avatar
1 vote
Accepted

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

If you try to create a button, you'll notice a $Profile variable. This variable exposes nearly all the fields on the Profile object in Visualforce and Custom Buttons. This lets you create a Custom, On-...
battery.cord's user avatar
  • 8,767
1 vote
Accepted

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

You will need to make this Visualforce page available for your Profile you see this error on. Follow the steps below in Salesforce Classic. Setup > Manage Users > Profiles Scroll to the Profile you ...
TSmith's user avatar
  • 4,932
1 vote

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

this is incorrect: window.location.href = '/apex/RecordTypeX_VF?' +'&retURL=/'+recId ; you have an & after the ? Change to window.location.href = '/apex/RecordTypeX_VF?retURL=/'+...
Eric's user avatar
  • 54k
1 vote

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

As far as I know, right now there is no way to customize it on this level. I can propose only to create Custom Visualforce page with "List View" functionality for Customers.
Alexander Ivanov's user avatar
1 vote
Accepted

Not able to return visualforce page from custom List button

Got the solution with lots of r & d :) Just need to add visualforce page url in saveURL window.location="/a0c/e?CF00N21000000jtT8={!Bundle__c.Name}&CF00N21000000jtT8_lkid={!Bundle__c.Id}&...
HSdev's user avatar
  • 453
1 vote

How to remove buttons on List View for Community?

This looks like an old question, but a colleague showed me something that might help. You can isolate the class of each of these buttons, using your browsers inspect feature, and hide them using the ...
Reed strauss's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible