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
raj345raj345 

Getting param value from the URL

Hi, 

 

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

 

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

 

//  code

 

 

</apex:outputPanel>

 

I  tried in this way but its not working.

 

Thanks,

Raj

Best Answer chosen by Admin (Salesforce Developers) 
cloudElephantcloudElephant

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-->

 

</apex:outputPanel>

 

Please let me know if this helps