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