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
trick.ax1374trick.ax1374 

Conditional Hyperlink

Hi Friends,

 

Here is my scenario:-

 

I have force.com sites and on it  I have webpage.This webpage may not be accessible to some users and they will have to download some sotware in order to access this page.

I want to make sure if the page is not loaded in the user's browser then hyperlink should become visibkle to the user so that he can download software. 

The users who are able to access this page ,hyperlink should not be visiblke to them .

 

I am looking for some kind of conditional hyperlink

 

 

Thanks,

Trick

 

KapilCKapilC

Hi Tric,

 

Can you please try this code...

 

<apex:outputpanel id="NoGuestUser" rendered="{!NOT(ISPICKVAL($User.UserType,'Guest'))}">
<a id="mydownloadLink" href="www.yourdownloadlink.com">Click To Download</a>
</apex:outputpanel>

 This link will available only when user is not type of guest profile.

 

[If you got answer from my post please mark it as solution.]
Thanks,
Kapil

 

trick.ax1374trick.ax1374

Thanks Kapil,

 

Very soon I will be trying your solution and if it works it is great,if it doesn;t then I will come back to you.

 

Thanks,

Trick