Questions tagged [action]
The action tag has no usage guidance.
185
questions
1
vote
2
answers
1k
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 ...
1
vote
1
answer
298
views
CommandButton in visualforce component not triggering action in controller
I have a few command buttons that are not calling the action as defined in the controller. The 'showPopup' method works, but the others do not. Log files show that the methods are not being invoked at ...
1
vote
0
answers
42
views
Adding a sibling record via Visualforce in Lightning
Scenario
Custom object Basket__c is the Master of two Detail custom objects: Fruit__c and Vegetable__c.
Visualforce page vfAddVegetableFromFruitPage is embedded via standard Page Layout ...
1
vote
1
answer
442
views
Is it possible to invoke a flexipage as a quick action or anyhow?
I found that we can use different action types
unfortunately, neither of them is what I need.
Is there a hack or trick to "route" to a flexipage? I need that functionality available in the mobile ...
1
vote
0
answers
352
views
What is the URL to the new Salesforce Lightning Email Editor for use in Action Buttons
BACKGROUND
I have an action button which opens this link:
https://xxxxx.my.salesforce.com/email/author/emailauthor.jsp?
p3={!Opportunity.Name}
&p3_lkid={!Opportunity.Id}
&cancelURL={!...
1
vote
0
answers
615
views
Displaying Error Messages in Salesforce Mobile when using the Chatter "Post" Action
I want to prevent Chatter posts being created in certain conditions, displaying a relevant error message to users in the process.
In this following example, I have created a trigger that prevents ...
1
vote
0
answers
390
views
open lightning action in subtab
I'm actually using the service console, and I saw that if I set my account as the main tab, I can open an account, and each related record that i open , will open as subtabs. This is very good, fine.
...
1
vote
1
answer
82
views
Override AddCampaign action in Lightning?
I wish to override the 'AddCampaign' action on the Campaign object in Lightning.
We have an 'existing' override in place already for Classic (which works :) )
The override is a Visual Force Page.
The ...
1
vote
0
answers
854
views
Apex controller action not accessible - "Unknown controller action 'getLeadSourceOptions'"
I'm up against a wall with this one. I've scrubbed my code 20+ times and I'm not seeing what I'm missing. According to the error, it sounds like the helper in the extended component is calling the ...
1
vote
0
answers
739
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
0
answers
292
views
DML on page action
I have the following situation in my plate ...
On page load, a modal pops up.
The modal is invoked on an action attribute in apex:page.
The method that is on the action has an upsert operation that ...
1
vote
0
answers
167
views
Can a community user create a new case from the record list quick actions on the Napili template
I would like to enable community users to create cases against my custom Unit object am I able to add the action on the record list?
In the winter16 release notes it says "Related record lists: ...
1
vote
1
answer
506
views
How to pass parameters in action method of apex:page tag
I have overridden the view page of opportunity and based of certain scenarios I am redirecting to different pages.
Initially I have used window.location.href inside outputpanel tag to redirect to ...
1
vote
1
answer
269
views
How to hide Status(standard field) values when status has particular value
Can anyone suggest me to achieve below action.
I am using Status Field, when ever the status value is Open then i should be allowed only to few status like "In Progress" and "Need Information". And ...
1
vote
0
answers
264
views
Service Cloud console action JavaScript security error
We developed a very simple visualforce page with JavaScript to be used as an action in the service cloud console for the case object.
Here is the page:
<apex:page standardController="Case" >
&...
1
vote
0
answers
305
views
Problem with reRendering a component in vfp
I am doing a Add/Delete row functionality in vfp. Within this add/delete row pageblock am calling a component(which is having textbox). When I click on add row button it is rerendering the component ...
1
vote
0
answers
446
views
Unable to update (corrupt?) page layouts via Metadata API. Error: Invalid field:xxx in related list:xxx
Our application uses the Metadata API to make changes to page layouts. This mostly works great, but in the last month or so we've encountered several customer organizations where we get errors when we ...
1
vote
0
answers
114
views
NPSP URL Buttons don't display in Lightning
I'm using the latest version of the NPSP and noticed that URL buttons are no longer supported for custom actions on related lists when in Lightning mode. This causes an issue because the org I'm ...
1
vote
0
answers
48
views
How do I include Custom Object Actions in a Managed Package?
I have a custom object with a page layout and an object-specific action. I have included the action, listed under Salesforce1 Actions in the Page Layout editor, in the Actions in the Salesforce1 ...
1
vote
0
answers
97
views
How to change image of button in salesforce1?
I am opening a page on click of detail page button in salesforce. The same button is automatically generated as action in salesforce1 UI. I want to change the image of that action. By default it is a ...
1
vote
0
answers
47
views
add a keyboard shortcut action to Lead object
Hi I am very new to Salesforce and I was wondering if there was any way to make a keyboard shortcut action in the Leads object? I know that there is a "Behavior Option" to execute javascript but the ...
1
vote
1
answer
6k
views
How to Give Default value to a LookUp field using Formula Editor
I have an action on which i have one Lookup Field "Year".Year is an object with only two records - 2015 , 2016.
I have this value to be predefined as 2016 when user clicks an action
While creating a ...
0
votes
2
answers
2k
views
How to avoid page reload on standardController standard action (Save)?
i am using stadardcontroller Opportunity on my visualforce page but my concern is i don't want to reload that Opportunity detail page when i click on Save Button...
Code :
<apex:commandButton ...
0
votes
3
answers
3k
views
Flow wrapped in a lightning component used as a Global Action Button not closing flow screen
I adjust my flow and it does work where a case is created and it redirects to a newly created case with no other screen works when i add the lightning component to my lightning home page layout.
But,...
0
votes
1
answer
130
views
while calling method showing variable undefine in lightning component
This page has an error. You might just need to refresh it. Action
failed: c:SComponent$controller$arResult [str is not defined] Failing
descriptor: {c:SComponent$controller$arResult}
when click ...
0
votes
1
answer
54
views
Unable to find action on Lightning Component
This is my code but I have the Error
// DynamicRelatedContactListController.apxc
public with sharing class DynamicRelatedContactListController {
@AuraEnabled
public static List<Contact> ...
0
votes
1
answer
2k
views
run quick action from batch
I am new to Apex but thanks to the community I learn quickly. I have been looking for a solution to my problem for a few days that is why I am talking to you.
i want to run a custom quick action in &...
0
votes
1
answer
6k
views
Dynamic row actions in Data table using LWC
Can someone help me how to code a dynamic row actions in data table using LWC?
I want to publish the book if the field value is unpublished and I also have the choice to unpublished the book if the ...
0
votes
1
answer
3k
views
How to run multiple actions in parallel in a flow
It seems that a flow is designed to run linearly but I would like to create a flow using the flow builder that runs multiple actions in parallel. Is this possible and if not, is there a good ...
0
votes
1
answer
73
views
Displaying a list returned from a method on a Visualforce page
I've tried various iterations but this is what I have right now. This is the main code from VF Page:
<div>
<h3>Search Groups</h3>
...
0
votes
2
answers
673
views
Auto Save Picklist value onchange
I have an apex page where there is only one picklist field whose value change is allowed by User. Now I don't need a Save button to make the change reflect in system. Instead I need that anytime User ...
0
votes
1
answer
964
views
How to execute Apex code from Custom Object List View in Salesforce Lightning
Example
I would like to add a quick action button to the list view page for custom object Invoice__c, the quick action is called Generate Invoices and when executed will run apex code to generate ...
0
votes
2
answers
366
views
Cannot read property 'WhoId' of null when using lightning data service with task
I am actually using force:recordData to get info from a task and then I want to create an event from it. So I created a lightning component to be used in a lightning action. The component code is as ...
0
votes
1
answer
827
views
Setting up scheduled actions in process builder: "Do you want to execute action..." not showing up
I'm trying to setup a scheduled action when a lead is created or updated. This salesforce trailhead tells me I need to check the box "Do you want to execute the actions only when specified changes are ...
0
votes
1
answer
222
views
Getting Error while calling a url from visualforce page
I am creating an action using a vf page that automatically redirects to a url.But,I am getting this error.
My code is as follows :
<apex:page standardController="Lead" action="https://composer....
0
votes
2
answers
60
views
How to remove salesforce standard '' action'' fuctionality?
I want to remove action header along with edit and delete ,how can i remove it .it is displaying after creating the records. and my users should not see that action facet
0
votes
1
answer
2k
views
Add custom action to Action column on list view
Is it somehow possible to add custom action to Action column on list view?
0
votes
1
answer
1k
views
override standard edit button based on recordtype
I have a requirement to show different edit layout, based on recordtype, using standard edit button override. I'm trying to create a visualforce page and assign it to the edit button, refrering this ...
0
votes
1
answer
328
views
Flow Action Issus
in my flow, I use an action to send notification, I have an action to send notification with bell icon, I receive the notification but in HTML form as the image shows, how can I do it? to resolve ?
My ...
0
votes
1
answer
348
views
Are there are standard actions for ApexPages.Action class in Visualforce Page?
I am building logic for Quick Action on List View represented as Visualforce Page.
And after some logic proceed I need to go back to the List View.
I have found the next piece of code which does it :
...
0
votes
1
answer
603
views
Standard Actions in LWC
Who can tell me if it is possible to attach standard actions like edit, clone, delete to custom buttons when creating a custom Record Page in LWC?
0
votes
1
answer
2k
views
"Create Task" quick action hidden on Lightning page
Anyone have experience with quick actions that won’t show up on a Lightning page? I’ve got one that creates a task. The user’s profile has access to the action’s record type and edit access to the ...
0
votes
1
answer
350
views
Use Flow and Action (Create a Record) to Conditionally Create Opportunity From Account
Scenario - I currently have an Action that can be clicked on the Account page to create a pre-populated Opportunity. Now I want to use Flow (specifically a decision), to build a Flow Button (Button ...
0
votes
1
answer
814
views
Visualforce page does not have valid controller for use with action
I am doing unmanaged package containing App within it.After I press upload button I get the below error as "Visualforce page does not have valid controller for use with action"
Any help is ...
0
votes
1
answer
564
views
How to implement an Apex-backed Action button?
Is there a leaner way (less code) of implementing an Apex-backed custom button in the Lightning record UI than creating a "full" component per Action?
0
votes
1
answer
679
views
How to update particular section using action region
Here when i update the "Record Detail" section ,first section "Account information" validation error is throwing.how to update only the particular section through action region?
visualforce page code:...
0
votes
1
answer
399
views
Controller method not getting called when javascript validation getting passed
I have a javascript validation on click of command button(onclick="return validationFunc();").
When the validation is failing the backend action is not getting called(which is expected),however the ...
0
votes
1
answer
3k
views
Simple action to change the record type of the record
I am looking for a simple way for the user to change the record type of a record. I would like to know if it is possible to have a button on the page layout for the record that the user is working and ...
0
votes
1
answer
389
views
Using the $Action Global Variable when the object type is ambiguous
When building links in Visualforce, I typically prefer using the $Action global variable and URLFOR(). e.g.:
<apex:outputLink value="{!URLFOR($Action.Account.View,Account.Id)}" >
As far as I ...
0
votes
1
answer
205
views
How to make a form submit twice, to CRM system AND send a copy as an email
I was wondering if someone could help me with my code.
I am using Saleforce (CRM SYSTEM) to track leads from our site. When people click 'submit' this sends the information and inputs it into ...