February 10, 2021

How to get URL Parameters in Visualforce Page?

Syntax:
{!$CurrentPage.parameters.Paramtervalue}

Help Article - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_currentpage.htm

Sample Code:

<apex:page >
    
    {!$CurrentPage.parameters.recId}<br/>
    {!$CurrentPage.parameters.checkBool}
    
</apex:page>
 
Syntax:
 
 

No comments:

Post a Comment