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
viv1viv1 

Disabling command link ??

i want to disable command link which shows icon..

its disability should be visible in UI !!

how should i do this ???

 

Devendra@SFDCDevendra@SFDC

Hi,

 

You can use make a use of rendered attribute.

 

<apex:commandLink rendered="{!SomeCondition}" value="Enabled Command Link" />

 

<apex:outputText rendered="{!NOT(SomeCondition)}" value="Disabled Command Link" />

 

At the time of enable use <apex:commandLink> and at the time disable use <apex:outputText>

 

Thanks,

Devendra