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
Rick SF AdminRick SF Admin 

How to hide a value on visualforce page (pdf) if a specific picklist value is selected

I created a button on my custom object (Education__c) that creates a PDF for that record. I am trying to code my visualforce (PDF) page so that when the value "Other" is selected from the State__c picklist field, "Other" will not display on the PDF. For exmaple:

Picklist Values:
MD
DC
VA
Other

IF "Other" is selected, the State (picklist) field is left Blank when the pdf is generated.