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
paddybillipaddybilli 

conditiona​lly render a link using <apex:outputLink>

Hi,

 

How to rendered vf page based on account owner using OutputLink tag.

 

Regards,

Paddybilli

jd123jd123

Hi

 

Can you expalin bit more i didn't get you?

jgradw2jgradw2

Oh I think I know what they are asking. They want to knwo hwo to show the link if a certain condition applies. There is an attribute for outputLink, commandLink, commandButton, etc, called "rendered". It's a boolean that only displays the link if it evaluates to true. Here is one of mine as an example:

<apex:commandLink action="{!URLFOR($Action.npe5__Affiliation__c.edit, ag.Association)}" value="Edit" rendered="{!IF(ag.Association != null,true, false)}" />