Skip to main content
2 of 3
added 124 characters in body
Saroj Bera
  • 14.8k
  • 2
  • 20
  • 37

You can pass the parameters with <apex:param tag. You need to combine <apex:param with <apex:commandLink as below. Hope this helps.

<apex:page standardController="Contact" extensions="CommandLinkParamController">  
    <apex:form >
        <apex:commandLink value="Process Nickname" action="{!processLinkClick}">
            <apex:param name="nickName"
                value="{!contact.firstname}"
                assignTo="{!nickName}"/>
        </apex:commandLink>
    </apex:form>
</apex:page>
Saroj Bera
  • 14.8k
  • 2
  • 20
  • 37