Questions tagged [commandlink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

Declare Static Resource as a variable to assign its value through commandbutton

I have the following code: <apex:mapMarker position="{!war.GeoLocPosition__c}" title="{!war.Name}" icon="{!IF(war.AE_letzte_12_Monate__c > 5000,URLFOR($Resource.ms_star), ...
Jan Tonnet's user avatar
0 votes
0 answers
74 views

Salesforce apex:output link image not downloading [duplicate]

I am trying to get images in table and when we click on that image,it should get download.I am using apex:outputLink but image is not downloading. <apex:column > <apex:facet name="header"&...
sfdc developer's user avatar
2 votes
1 answer
1k views

How to auto populate the lookup field value into the text field in visualforce page?

I am trying to auto populate the value of lookup field to text field in the visualforce page. As soon as I select the value of lookup field from the list the value as it get populated in the lookup ...
Tanmay Kakde's user avatar
1 vote
1 answer
397 views

How to check which command button is clicked in apex

I have 1 command button and 1 command link which are calling same method "testGet" in action. How we can check which button is clicked in apex method? With command link, I am passing param which is ...
user71481's user avatar
1 vote
1 answer
1k views

VF Page column sorting method loses functionality when extending standard controller, why?

So I am trying to make a VF Page to display list of account records. We must have pagination and filtering from standard controller. Also we must use custom controller to create methods to alternate ...
helpifell's user avatar
0 votes
1 answer
478 views

When immediate="true" values in list does not persist

What i am simply trying here is to add one blank wrapper object in wrapperList on click of add another button. Issue is when i set immediate=true in commandLink or in actionFunction, code adds one ...
Mr.Frodo's user avatar
  • 5,804
0 votes
1 answer
528 views

Hide a commandLink onClick

I'm trying to hide a commandLink type"button" onClick, i will give you the code below. <script type='text/javascript'> applyCSS: function(cmp, event) { var cmpTarget = cmp.find('save'); ...
Nuno Carvalho's user avatar
0 votes
1 answer
376 views

Need help to pass Account Id as parameter of Command Link

I have a VF Page Account Detail hich displays list of account Names. The account Names are command link and clicking on the link redirects to another page which displays the account Id. I have ...
Altaf Pawaskar's user avatar
1 vote
1 answer
555 views

Adding Space Between Side-by-Side commanLinks in a PanelGrid

This is the result I want and accomplished, the space I put between the commandLinks in particular: But I went about it, surely incorrectly, by adding a bunch of empty outputLabels between them: <...
Gabriel Rivera's user avatar
1 vote
1 answer
536 views

validation on onClick of apex:Commandlink

I am trying to validate a checkbox is checked on click of a apex commandlink. I am using SLDS styling on the page and the problem seems to be with the SLDS checkbox. I am using the below code as ...
Quest_sfdc's user avatar
2 votes
1 answer
2k views

Style and Show command Link as Command Button in Classic & Lightning

I would like a command link to look like a command button. I was once told that I could to that with using the style.
Chirag Mehta's user avatar
  • 1,291
0 votes
1 answer
200 views

Apex:ActionRegion blocking Controller function Action

I'm trying to call a simple function in my Apex Controller and want to use an actionRegion to stop most sections of the page re-rendering. I note though when I add the actionRegion the controller ...
RedQueries's user avatar
0 votes
3 answers
2k views

Delete Row with confirm dialogbox

In JavaScript function all the alert showing and id is getting but for controller method is show's " DML statement found null SObject at position 0" Exception. Controller public class ...
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
101 views

Unable to save changes using apex:commandLink located on a different form

I am trying to use bootstrap tabs in order to navigate in a single page application. By clicking on a tab I want to change the view (switch to the selected tab) and save the data to the database. I ...
Json's user avatar
  • 1,587
0 votes
2 answers
996 views

commandLink reRender doesn't seem to do anything

I am trying to reRender a block after the user clicks a commandLink that updates an object. Any help would be greatly appreciated. Here is the code: <apex:page controller=“ServiceSubscription" ...
Kenyon's user avatar
  • 113
0 votes
0 answers
520 views

Return to same page after pagereference

I am having a VF page that generates content as excel, which I am calling from another page as a commandLink. The problem I am facing is when I click the commandLink, the current page becomes blank. ...
yeselkay's user avatar
  • 321
0 votes
1 answer
395 views

Show Edit and Delete command links on custom related lists according to profiles (Visualforce and APEX)

I have custom related lists built with Visualforce and APEX Controller with Edit and Delete command links. I was wondering if there is a possibility to show these command links based on profiles. My ...
user avatar
0 votes
2 answers
289 views

how to hide a link from sites?

I have Visualforce Page with three <apex:commandLinnk> tags (e.g. "New Record", "Edit Record", and"Change Record"). The first link shouldn't be displayed in Sites, but only in Visualforce Pages. ...
sonu's user avatar
  • 35
2 votes
1 answer
275 views

How to toggle two commandlink without refresh the whole page

I am having a pageblock in which pageblock sectionitems of 2 commandlinks. I want to toggle between the these two links without getting the page refreshed. VF Page: $(document).ready(function(){ ...
ram135868's user avatar
0 votes
3 answers
1k views

How can i update <commandbutton> param with JavaScript?

I need to update from prompt 1 param in , but i get all the time a a JavaScript error "Cannot set property 'value'". I need to set the "rejectReason" param to what the user has written in prompt and ...
Eli's user avatar
  • 151
0 votes
2 answers
109 views

<apex:commandLink> in VFP doesnt recognize my controller method, Why is that?

i'm trying to understand why the action "processApproveButton" gives me an error in VFP of unlnown method, and i cant save it?? heres the code: Controller: global class CandidatesTabs { public ...
Eli's user avatar
  • 151
0 votes
1 answer
1k views

VisualForce: Prevent submission when clicking commandLink

I'm trying to create a FAQ section on my Force.com site that queries our org's Solution object and dynamically display Solution titles as links via commandLinks. I want to display a pop up modal that ...
Eric Luu's user avatar
  • 890
1 vote
4 answers
8k views

Making a command button open in new tab

How do I make this open in a new tab: <apex:pageBlockSection > <apex:commandButton value="...
MGS's user avatar
  • 155
1 vote
2 answers
374 views

Bootstrap Nav Tabs Becomes Inactive on ReRender

I have a Bootstrap Nav Tabs (2 tabs) with some content in both tabs. The first tab has PageblockTable with StandardSetController Pagination. When I click on Next button. The next set is rendered ...
sfdcFanBoy's user avatar
  • 4,055
0 votes
1 answer
59 views

Command link click submits the whole vf page

I have a command link which submits the whole form when I try to click on it instead of displaying the error message on the vf page. The vf page code is <apex:pageBlockSectionItem rendered="{!...
Abhinav Pandey's user avatar
2 votes
1 answer
178 views

CommandLink ID not processing from VF to Apex

I have displayed a RecordSet of VF page with an option to delete the record like below, <apex:page standardController="Container__c" extensions="searchDataController"> <apex:form> <...
Coder's user avatar
  • 377
0 votes
2 answers
146 views

Insufficient privilege error on access contacts on account page

I am using commandlink rerender to refresh a pageblock. I am making the contact name as a link here and trying to access it on the same page: <apex:page standardController="Account" > <apex:...
SfdcBat's user avatar
  • 4,761
0 votes
1 answer
1k views

Rerender outputpanel with command link

I've created a VF page that displays 2 tables of contacts. The page contains command links "x" and "+". When X is clicked, it should be removed from the top table and placed on the bottom table. When +...
gNerb's user avatar
  • 9,441
1 vote
1 answer
192 views

Boolean Not changing on Command Link?

I've got a command link that runs a method on a wrapper class. This method should cause the WrapperClass's "Selected" variable to become "True". For some reason it doesn't appear to do so? Wrapper ...
Cody Beaner's user avatar
0 votes
2 answers
515 views

What parameters to open calendar with a link?

I have an <apex:commandLink> that opens calendar page in a new tab : <apex:commandLink value="Calendar" target="_blank" action="{!showCalendar}"/> In controller, I have : public ...
SF_user's user avatar
  • 3,596
0 votes
1 answer
1k views

Diplay a Text field when clicking a CommandLink in VF page

I would like to display a Text Field when clicking Command Link ( Title:Add Filter Logic ). After the clicking of command link, the link title should be renamed to Clear Filter Logic. It would be ...
Reshmi Smiju's user avatar
1 vote
1 answer
25k views

modal pop window backdrop static not working [closed]

I have bootstrap modal pop-up window. I want the background to be non-clickable. I have close button to close the modal pop-up, so the users should use only that. Clicking outside the modal pop-up ...
sfdcFanBoy's user avatar
  • 4,055
2 votes
1 answer
414 views

How to create a command link in salesforce1 to open a record? [duplicate]

I have a vf Page with Data table where record name is a link like this <apex:CommandLink value="{!m.what.name}" action="/{!m.what.id}" target="_Blank"/> This opens in a new tab in web UI In ...
user40138's user avatar
  • 948
2 votes
2 answers
2k views

How to Call two action from one Command Link? [duplicate]

I have to call 2 URL on click of command Link , one will Record Edit Page URl and Another is different Webserver URl I have tried two Ways Both are Not Working.....I mean both action is Not ...
user40138's user avatar
  • 948
1 vote
2 answers
1k views

modal window pop up in apex pageblockTable opens the same message for every record

I have a pageBlockTable with modal pop up window opening on clicking a column value. Example: I have 2 columns Subject and Date. When I click on ABC, in the modal pop-window I'm showing "XYZ and ...
sfdcFanBoy's user avatar
  • 4,055
1 vote
1 answer
1k views

Auto-closing Modal window with Bootstrap and apex:commandLink

I'm trying to pass a parameter to my controller on open of a modal window using Bootstrap html attributes. When I use the standard html button tag, the modal window behaves appropriately, but I am not ...
sfdcFanBoy's user avatar
  • 4,055
1 vote
2 answers
1k views

Auto-closing Modal Issue with Bootstrap3 and apex:commandLink

I'm trying to pass a parameter to my controller on open of a modal window using Bootstrap html attributes. When I use the standard html button tag, the modal window behaves appropriately, but I am ...
Matt Parker's user avatar
2 votes
1 answer
60 views

Shifting an image down

I have a search bar along with a search and clear button. What I would like is for the clear button to be centered with the search button. I have tried using padding-top on the image as well as it's ...
Louis Pujol's user avatar
  • 1,235
1 vote
2 answers
1k views

Command button display control

I have two command buttons (say A , B). I want when A is clicked then only B would be shown. When B clicked then it would be hidden again. Is this achievable ? Please find my page below. Page snippet:...
Testing_SFDC's user avatar
  • 2,940
4 votes
1 answer
1k views

Handle Multiple <apex:form> elements in one Visualforce page

I have a visualforce page with an apex:component in it. (This component is for headers, used in various other places). <apex:page title="" ... > <apex:form> <c: HeaderV2 /> &...
sfdcFanBoy's user avatar
  • 4,055
0 votes
1 answer
2k views

Need Page refresh each time Save method called

I have to refresh the page each time the Save method is called. Please find my page and code snippet here. Can someone help me here? Page : <apex:commandLink value="Save" action="{!savei}" target=...
Testing_SFDC's user avatar
  • 2,940
0 votes
1 answer
205 views

Call send method from command link

I have a send method outside constructor in apex class. I need to call that from Command button onclick. Can someone help me here? Send method: public PageReference send() { String addresses;...
Testing_SFDC's user avatar
  • 2,940
1 vote
1 answer
883 views

JavaScript executing before controller method finishes

So I have an action function which calls an apex controller method. I call this action function within some javascript at the top of my page and after that call I want to send some information to ...
Louis Pujol's user avatar
  • 1,235
1 vote
2 answers
2k views

commandLink and commandButton with image not passing parameters

I'm trying to pass a parameter to a method in a visualforce page when the users clicks on a detail icon (a static resource image). I'm trying with a commandButton since I need the button to be an ...
tony danza's user avatar
0 votes
1 answer
2k views

Why this commandLink never calls the action inside the PageBlockTable.?

I have an issue with a CommandLink that is inside a PageBlockTable, the action's CommandLink is never called inside the PageBlockTable, but outside the method is called properly from the same ...
Ivan Rivera's user avatar
2 votes
1 answer
2k views

passing a param in a dataList and commandLink

Okay so here is my visualforce page <apex:page standardController="Account" extensions="RelationshipTreeController"> <apex:form > <apex:dataList value="{!relationships}" ...
Louis Pujol's user avatar
  • 1,235
0 votes
1 answer
741 views

Toggle Command Button Value from Ascending to Descending

I have a command link Ascending. If I click on the link, immediately, the value of the button/link should change to Descending. <apex:commandLink action="{!Asc}" value="Ascending" reRender="block"...
sfdcFanBoy's user avatar
  • 4,055
0 votes
1 answer
4k views

selectList onchange not working

I have a VF page in which Im displaying set of records in pageblocktable. There is a dropdown List (Sort By) with values. Name, Program and a commandButton named 'Reverse Order'. So, when I ...
sfdcFanBoy's user avatar
  • 4,055
1 vote
2 answers
1k views

commandLink is not rendering in a pageBlockTable cell

I have the following code: <apex:pageBlockTable value="{!nuevaBitacora}" var="bitacoraParaInsertar" id="table"> <apex:facet name="Agregar"> <...
94071340's user avatar
1 vote
2 answers
2k views

commandLink rerender pageblockTable not refreshed after save

<apex:pageBlock id="SortByDirectionBlock" rendered="{!checkHFStatus}"> <apex:commandLink action="{!saveSelectedMatches}" styleClass="navbar-link" value="Save Students" reRender="...
sfdcFanBoy's user avatar
  • 4,055