function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Getting param value from the URL



I am new to salesforce. Is it possible to implement the below syntax?


<apex:outputPanel rendered="{ ! (Field value == $CurrentPage.parameters.paramvalue) }" >


//  code





I  tried in this way but its not working.




Best Answer chosen by Admin (Salesforce Developers) 

Hi Raj,


You are logically correct. However, to provide a solid boolean input to rendered attribute on apex:outputpanel use IF formula in following manner:


<apex:outputPanel rendered="{! IF(FieldValue == $CurrentPage.parameters.paramvalue, true, false) }" >


<!-- WHERE  FieldValue is merge field expression-->




Please let me know if this helps