Questions tagged [button]

This tag is for questions related to an interactive html page element that's event driven. A button uses either Ajax calls or JavaScript to initiate an Ajax Event of some kind, as defined in the page mark-up, when any of the following occur on the button: onblur, onclick, onfocus, onmousedown, onmouseout, onmouseover, onmouseup, or ondblclick.

Filter by
Sorted by
Tagged with
2
votes
2answers
1k views

How to get all buttons in my page from a controller javascript function(component, event, helper)?

I know how to enable the clicked button. Lets say I want to enable all buttons on the click of a button. The button is in a Lightning component as: <aura:component implements="flexipage:...
0
votes
1answer
230 views

Remove "Save & Add Price" Button from new Product layout

I would like to remove the standard "Save & Add Price" Button from the new product page layout IF the product is of a certain record type. How would I achieve this?
2
votes
1answer
1k views

Formula for writing a specific Day of Week date value?

Objective: create a List-View Button that writes the date value of the immediately upcoming Monday to a field in the selected record(s) E.g. if Monday is Dec 5, the expected output for writing a ...
2
votes
1answer
36k views

Align SLDS buttons to right [closed]

I am trying to create a file explorer system, wherein all the folders are iterated and created. I have two buttons beside every folder I need to move those two buttons to complete right. I tried with '...
0
votes
1answer
124 views

How to add HTML special or HTML entity character to default content block named Button?

I want to add arrow (→) to the button text, but WYSIWYG editor change it to &amp;rarr;. Are there any workarounds for this? Update I'm trying to add arrow as HTML entity character to ...
0
votes
1answer
30 views

A new button called “Copy to Mobile” in the object order page to copy the home phone field(in Account Object) value into Mobile phone field value

Created a button with Execute JavaScript and OnClick JavaScript var records = {!GETRECORDIDS($ObjectType.Order__c)}; var updateRecords = []; if (records[0] == null) { alert("Please select at ...
0
votes
0answers
332 views

Added Onclick Java Script Alert into Detail Page Button

I am encountering some issues and it has me stumped, and hoping the community can help me out. The aim here is that when the user pushes the custom button an alert should pop up saying: "By ...
1
vote
1answer
639 views

APEX Code with Pardot and Salesforce

I'm setting up Pardot by adding a button in Salesforce to bring prospects over to the Pardot platform by following the setup guide exactly. The following code is throwing an error even though it's ...
0
votes
0answers
258 views

Object Visualforce Button Not Working in Salesforce Communities

I have a Visualforce Button on one of my objects called Configure. It works fine in the Standard Salesforce view. I then created a Salesforce Community using the 'Visualforce+Tabs' template and when I ...
3
votes
1answer
117 views

Javascript Button User Permissions

I am trying to put a Javascript button in a Managed Package, but I need to check the user permissions first. Is there a code equivalent to the Schema methods for Javascript? Something like the ...
1
vote
3answers
9k views

Read value attribute in lightning button in the client js controller

I create a bunch of buttons in a table with aura:iteration. Think of it as one per contact per row to act on the record. Here is the button markup inside a td - <lightning:button variant="brand" ...
0
votes
2answers
1k views

custom button visibility based on field

I have a custom button but it has to be displayed in the page only when a picklist value is selected. How to obtain this?
0
votes
2answers
202 views

can i compare 2 lists in rendered condition in salesforce in vf page

<apex:commandButton value="Import data" style="font-size:11px; margin-left:16%" action="{!importNoiseData}" reRender="pb,nPB,searchResultsn,Pbt" rendered="{!IF(noiseRecords == ...
1
vote
2answers
766 views

Click on button keeps the box moving for thrice [closed]

I have below code where when I click the button, square box moves once. I need to move it further on second click. Again move it on third move. On fourth click it will reset to default position. I can ...
1
vote
2answers
1k views

Warning/Confirmation Prompt before executing Custom Button's VF Popup?

I have a custom button on the Account object that, when clicked, renders a VF page in a new window. I'm wondering if it is possible to have a pop-up before executing the vf page to have the user ...
1
vote
1answer
2k views

How to create a button on related list that gets parent Account ID

I am trying to create a custom "Log a phone call" button, the button will be displayed on the related list of Activities on an Account Record. The button will use a Visual Force page as its source so ...
0
votes
1answer
46 views

Adding Account Owner to Instant Email Button on Case

I have a JS button (on Cases) that opens an email window with the PR Contact automatically added (lookup relationship). I also have the Account lookup on the Case record and I want to use this to ...
0
votes
2answers
2k views

Is there a apex command button that allows you to not refresh the page?

I have a button: <apex:commandButton action="{!pullReport}" value="Pull Report" id="pullReportbutton"/> That refreshes the page every time it is clicked. If the page does not refresh, the data ...
1
vote
1answer
2k views

Rename Standard new related list button

Is it possible to rename standard related list button without replacing standard new button with a new custom url hack button ?
1
vote
1answer
3k views

Close Case button missing from Lightning

After changing sharing settings for Cases and couple other objects to Private, i can't see "Close Case" button, but only in lightning/community. In classic it's where it should be. I'm doing all this ...
0
votes
3answers
131 views

Creating Custom "new" LIST button for custom object

I have a junction object called relationships. It is tied to Projects and Accounts. I am just trying to create a custom list button that adds a new record. So far I have this: window.open("{!URLFOR($...
0
votes
1answer
43 views

add an Alert under certain circumstances

The users of my org have a needs but I don't know how to help them. In my Organization there are two objects Opportunity and P&L. Every Opportunity have one and only one P&L where the agents ...
1
vote
1answer
688 views

Update Check-Box on Opportunity List View

I would like to create a button that appears on an Opportunity List View, when selected, allows me to update a checkbox field [Mark_As_Paid__c] for all the opportunities selected in the view. ...
1
vote
1answer
87 views

Passing Data through URL - Need help on SOQL

I'm working on our Quote Request object which looks up to a Opportunity. I want to grab the RecordType from the Opportunity and pass it into the URL. I think my SOQL statement is messed up. Can you ...
-1
votes
1answer
296 views

Problem with OnClick of Javascript for button occured [closed]

Is there a problem with my javascript on a custom button? Before it was set to URL with the URL variable filled in, but now i want to add logic to this. Thanks {!REQUIRESCRIPT("/soap/ajax/21.0/...
1
vote
1answer
196 views

Lightning Components Redirection [closed]

I have 3 components namely Employee Division which will show his division details like manufacturing,accounts etc and Employee Profile which will show his Profile details and an Dashboard Component ...
0
votes
2answers
2k views

Alert message ok/cancel from standard button fire trigger

EDIT: I have a standard button added to the salesforce standard page, what I want to do when the user clicks on the buttons the following: 1) alert with the message saying " are you sure you want to ...
0
votes
0answers
32 views

Command button/ link not firing

I am trying to use apex select checkboxes to pass values to the controller values on click on command button. But the button is not firing. On replacing the button with link the link fires only when ...
1
vote
1answer
127 views

Embedding command button inside <li>

I am working on pagination functionality which involves custom UI. I need to have disable functionality within the pagination(eg: next page button should be disabled if the user is on the last page). ...
1
vote
1answer
1k views

Blur button after click of the button [closed]

I am using AngularJS in a Salesforce implementation. there is a button which when clicked does few automations in Salesforce - all good there. But the automation takes about 3-5 seconds to finish thus ...
4
votes
1answer
903 views

Validating sObject fields in JavaScript Custom Button?

I have a button that should update a boolean field to true if certain conditions are met. I want to do my validation in the JavaScript that fires on button click instead of letting the system run ...
1
vote
1answer
54 views

Contract Renewal

everyone. I'm attempting to institute an OnClick Javascript button which increases the StartDate and EndDate fields of the standard Contract object by one year (essentially renewing it), but ...
0
votes
1answer
1k views

Visualforce page with custom conroller not available for button

I found many related articles on this, but the details of my situation don't seem to line up with the common queries. I have a VF Page that I want to pull information from via the current account. So,...
3
votes
3answers
8k views

When is the Sharing Button visible for a Record?

When can I view Sharing Button on a Record in general? Is it only when an Object is set to Private on Org Wide Defaults? Or When the Objects OWD is Private or Public Read only? Is there any other ...
0
votes
1answer
34 views

How to fetch records of account history in a custom button

I have a date/time field and account for some of the fields in account. Now i need to create a javascript button on ACCOUNT that should compare account date field with the last updated date from ...
0
votes
2answers
58 views

Retrieve a date field and give value to a new field using Javascript Button

I am trying to retrieve the date from a field (which is a user input field) in a Campaign Member, and give that value to a new date field. {!REQUIRESCRIPT ("/soap/ajax/13.0/connection.js")} var ...
19
votes
2answers
17k views

How to Disable ui.button in Lightning Component

This may be broader question on how we set HTML attributes inside Lightning? The docs state ui:button has disabled property and it works fine in VFP for all VF components. But how do I set this ...
1
vote
1answer
134 views

Two related list 'new' buttons behave differently

I have a page for a parent object with two related lists on it. Both related lists are master-detail relationships with the parent object. On both related lists, the standard 'new' button is enabled ...
-1
votes
2answers
46 views

Reg : Button Validation

I have a button it have to work only when opportunity is won = true and shipping address is blank i wrote the button code but it is not working.Can anyone help what i did mistake in my code. {!...
3
votes
0answers
4k views

How to mass remove "Change owner" button automatically added by Salesforce

As part of the latest release, Salesforce have added the "Change owner" button to every single page layout in our org. Is there a way to mass-remove this from all page layouts, or am I going to have ...
1
vote
1answer
610 views

Issue with am onclick javascript button on a Visualforce page

I'm having an issue getting a button to execute javascript correctly on a Visualforce page. The button is supposed to execute an Apsona Merge Action, but instead, it just refreshes the page. When I ...
1
vote
1answer
447 views

Custom Button to Generate an email using email template

We have a custom button on our Opportunity, this allows for PDF to be generated providing a snapshot of the opportunity in that moment. I also need to send a copy to a group email and also the ...
1
vote
1answer
1k views

Press button from apex trigger

what i'm trying to manage, is have trigger that will execute submit for approval button. So far i made a trigger that automatically submits record for approval, based on fields value, but what I ...
2
votes
1answer
330 views

Custom button to open opportunity after lead is converted

I have a global class that creates an Opp from a custom lead conversion button. The problem is that the button works to convert the lead to an Opp but it does not open the Opp. I get an error message ...
0
votes
2answers
1k views

Custom URL Hack - anybody know how can i find the fields IDs from "User" object?

I'm new in custom URL hacking. I am trying to write a custom URL in a custom button. It is suppose to clone the User record, and while doing so, I want some user fields to be cleared. However, I need ...
1
vote
1answer
169 views

lookup id from Task to custom object with button

I have created a custom object and in the task, i have created a detail page button to automatically create the new custom object but including already some information from the task. my Url looks ...
0
votes
1answer
101 views

Does Big Deal Alert work if Opportunity buttons are overridden with VF pages

I have replaced the New, View, clone and Edit buttons of my Opportunity with VF pages. I have set the Big Deal Alerts to certain conditions.But receiving empty email body in all mails. How to ...
0
votes
1answer
85 views

Does assigning visualforce page to object buttons override the OWD

I have Opportunity OWD set to Private. Have over ridden the NEW,EDit,View and Clone buttons of Opportunity with VF page. I created opp record with USER1. Logged in as USER2 and still able to see ...
2
votes
0answers
38 views

I want to make visible a button for a specific role, role is under Opportunity Team

I want to make visible a button for a specific role, role is under Opportunity Team. Detail: I have an Oppo Team Member with role XYZ. When i create a quote from opportunity, there is a custom ...
1
vote
1answer
93 views

Task Send an Email page ..Send button is not copying the CC email ids

Can any one help me on this ... We are using the standard functionality of Task "Send an Email page" Send Button for the cases to reply to the customer.When the customers sends a email ,keeping in cc ...

1
4
5
6 7 8