Skip to main content
added 17 characters in body; edited tags
Source Link
Derek F
  • 64.1k
  • 15
  • 55
  • 104

I'm sure this will be easy for someone out there, but i just can't figure out how to get this to work. I believe I need to use render, but I'm not sure of the code. I have a visualforce page that will be used to generate and attach a pdf. In the piece of the table shown below, I only want the field 'Attended explained' to display if the field above (Ever attended in the past?) equals 'Yes'. Is there a way to conditionally display this field based upon the answer of another field. Thanks in advance!

Ever attended in the past? Attended explained?
<tr><th>Ever attended in the past?</th>
    <td><apex:outputText value="{!Screen__c.Attended__c}"/></td>
    </tr>
<tr><th>Attended explained?</th>
    <td><apex:outputText value="{!Screen__c.Attended_explain__c}"/></td>
    </tr>

I'm sure this will be easy for someone out there, but i just can't figure out how to get this to work. I believe I need to use render, but I'm not sure of the code. I have a visualforce page that will be used to generate and attach a pdf. In the piece of the table shown below, I only want the field 'Attended explained' to display if the field above (Ever attended in the past?) equals 'Yes'. Is there a way to conditionally display this field based upon the answer of another field. Thanks in advance!

Ever attended in the past? Attended explained?

I'm sure this will be easy for someone out there, but i just can't figure out how to get this to work. I believe I need to use render, but I'm not sure of the code. I have a visualforce page that will be used to generate and attach a pdf. In the piece of the table shown below, I only want the field 'Attended explained' to display if the field above (Ever attended in the past?) equals 'Yes'. Is there a way to conditionally display this field based upon the answer of another field. Thanks in advance!

<tr><th>Ever attended in the past?</th>
    <td><apex:outputText value="{!Screen__c.Attended__c}"/></td>
    </tr>
<tr><th>Attended explained?</th>
    <td><apex:outputText value="{!Screen__c.Attended_explain__c}"/></td>
    </tr>
Source Link

How to conditionally display field in table within visualforce page

I'm sure this will be easy for someone out there, but i just can't figure out how to get this to work. I believe I need to use render, but I'm not sure of the code. I have a visualforce page that will be used to generate and attach a pdf. In the piece of the table shown below, I only want the field 'Attended explained' to display if the field above (Ever attended in the past?) equals 'Yes'. Is there a way to conditionally display this field based upon the answer of another field. Thanks in advance!

Ever attended in the past? Attended explained?