Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [commandlink]

The tag has no usage guidance.

0
votes
1answer
50 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 ...
0
votes
1answer
36 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'); ...
0
votes
1answer
36 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 ...
1
vote
1answer
97 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: <...
0
votes
0answers
163 views

Change the style of the commandlink

I am now currently working on dynamic pagination and I having trouble when it comes to the design of my buttons. Since I am using commandlink, the "disabled" method is not supported, it is only ...
1
vote
1answer
141 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 ...
1
vote
1answer
659 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.
0
votes
1answer
76 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 ...
0
votes
3answers
388 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 ...
0
votes
1answer
74 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 ...
0
votes
2answers
188 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" ...
0
votes
0answers
293 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. ...
0
votes
1answer
283 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 ...
0
votes
2answers
71 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. ...
0
votes
1answer
265 views

Visualforce button to open EmailTemplate preview in new page causes error

I have a Visualforce page where I allow a user to edit text to add to a VF template and then send it. (I can't use an HTML template as there is an attachment which is built up using data from the ...
0
votes
2answers
354 views

pageReference not redirecting to Detail page

I have a VF page inside iFrame. In that VF page, the commandlink is there which should redirect to the detail page of an object. I have written one method as an action to the commandlink in a ...
2
votes
1answer
152 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(){ ...
0
votes
3answers
398 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 ...
0
votes
2answers
54 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 ...
0
votes
1answer
275 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 ...
0
votes
3answers
4k views

Making a command button open in new tab

How do I make this open in a new tab: <apex:pageBlockSection > <apex:commandButton value="...
1
vote
2answers
177 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 ...
0
votes
1answer
38 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="{!...
2
votes
1answer
102 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> <...
0
votes
2answers
132 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:...
0
votes
1answer
787 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 +...
1
vote
1answer
135 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 ...
0
votes
2answers
351 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 ...
0
votes
1answer
748 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 ...
1
vote
1answer
18k 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 ...
2
votes
1answer
334 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 ...
2
votes
2answers
1k 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 ...
1
vote
2answers
931 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 ...
1
vote
1answer
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 ...
1
vote
2answers
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 ...
2
votes
1answer
39 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 ...
1
vote
2answers
808 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:...
4
votes
1answer
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 /> &...
0
votes
1answer
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=...
0
votes
1answer
147 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;...
1
vote
1answer
643 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 ...
1
vote
2answers
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 ...
0
votes
1answer
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 ...
2
votes
1answer
1k 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}" ...
0
votes
1answer
662 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"...
0
votes
1answer
3k 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 ...
1
vote
2answers
954 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"> <...
1
vote
2answers
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="...
2
votes
1answer
5k views

Passing Parameters from one VF Page to a Controller used by another VF Page using CommandLink

Let me 1st start by saying, I have looked all over the net for an answer, could not gt it done. Thought it would be simple. But is not working. Problem: RoomType variable is not getting set. It is ...
2
votes
3answers
3k views

get commandlink value using JS

I have a link commandLink with value and onclick attributes, When I click on the link it should call a function in JS to get commandLink value. but it returns undefined in alert. How can I get ...