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
sohamsoham 

rendered attribute in <ApeX:page>

i am reallu confused with the rendered attribute . how should we compute the formula . I want to create a formula related to opportunity object
Best Answer chosen by Admin (Salesforce Developers) 
bbrantly1bbrantly1

The Rendered attribute specifies if the particular object is rendered.  This attribute can be used with almost all visualforce components.

 

The values passed should be in the form of a boolean.  Here is a quick example:

 

<apex:page rendered="{!ShouldIRender}"> <h1>Congratulations</h1> <p>This is your new page</p> </apex:page>

Controller:

 

 

public boolean getShouldIRender() { if (Some Condition) { return true; } else { return false; } }