Activity Forums Salesforce® Discussions What is <apex:param> tag in Salesforce?

  • Deepak

    January 27, 2020 at 10:40 am

    Hi Udit,

    A param i.e. a parameter used for the parent component.

    It can be a child of a following components:


    For e.g. Using <apex:param> in <action:function> given below:

    <apex:page controller="ApexParam1Controller">
        <apex:form >
            <a href="javascript:jsActionFunction('TestValue');">Send Param To Apex</a> <br />
            <apex:outputPanel id="vfParamPanel">
                The value of parameter is : {!vfParam}
            <apex:actionFunction name="jsActionFunction" action="{!doActionFunction}" reRender="vfParamPanel">
                <apex:param name="vfParam" value="" assignTo="{!vfParam}" />
    public class ApexParam1Controller{
        public String vfParam{get; set;}
        public ApexParam1Controller(){
        public PageReference doActionFunction(){
            // Do Something...
            System.debug('vfParam : ' + vfParam);
            return null;


Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos