+ Start a Discussion
SAHG-SFDCSAHG-SFDC 

If condition to display output link in VF Page

Hi,

I want to display the output link if the checkbox (Custom checkbox-  Display__c on product2) is checked

<td> <apex:outputLink value="/{!p.id}" target="_top">{!p.product2.name} </apex:outputLink> </td>

Any thought?
Best Answer chosen by SAHG-SFDC
Akshit HuriaAkshit Huria
Hi SAHG-SFDC

Use below Code Snippet
<apex:pageBlockTable value = "{!product2Value}" var = "pro">
    <apex:column>
        <apex:commandLink value="LinkName" rendered="{!pro.Display__c)}" />
    </apex:column>
</apex:pageBlockTable>
Please let me know if this helps you.

Thank you
Akshit

 

All Answers

Akshit HuriaAkshit Huria
Hi SAHG-SFDC

Use below Code Snippet
<apex:pageBlockTable value = "{!product2Value}" var = "pro">
    <apex:column>
        <apex:commandLink value="LinkName" rendered="{!pro.Display__c)}" />
    </apex:column>
</apex:pageBlockTable>
Please let me know if this helps you.

Thank you
Akshit

 
This was selected as the best answer
SAHG-SFDCSAHG-SFDC
Hi Akshit, Thanks for the reply