I'm trying to display records on a page (not a form) via VisualForce based on a checkbox value.
For example, if checkbox "Active_c" is checked, I would like to display five subsequent fields. If checkbox "Active_c" is not checked, I would like to display nothing.
The only example I can find are display text in the output, however, they don't support displaying multiple field output. For example:
{! IF ( CONTAINS('salesforce.com','force.com'), 'Yep', 'Nah') }
Anyone have experience with a conditional?
Best Answer
Apex Controller:
Visualforce Page:
Another example. Without reRendering, just checking the value of the checkbox on the runtime: