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
ArunKumar_RemmaArunKumar_Remma 

How to add Hyperlink in Visualforce page

Hi All,

 

    I have a requirement where in i need to print a field called Appointment ID in VisualForce Page.  This field should be displayed with hyperlink, so that when we click on this field link, we should navigate to that particular Appointment.  Could any one suggest a solution for this problem.

 

 

 

Thanks & Regards

 

Arun

*werewolf**werewolf*

A Visualforce page is really just markup for HTML.  You can use a standard <a> tag to make a link.

CLKCLK

<apex:outputlink value="{!oAppointment.Name}">/{!oAppointment.Id}</apex:outputlink>

 

or

 

<a>/{!oAppointment.Id}</a>

Edweek ShaneEdweek Shane

CLK wrote:
<apex:outputlink value="{!oAppointment.Name}">/{!oAppointment.Id}</apex:outputlink>

The forward slash should be inside the value parameter, like this:

 

<apex:outputlink value="/{!oAppointment.Name}">{!oAppointment.Id}</apex:outputlink>

 

PK S 5PK S 5
Should be :
<apex:outputlink value="/{!oAppointment.Id}">{!oAppointment.Name}</apex:outputlink>

 
hemankshree takhemankshree tak
Not working for me

                             <apex:outputLink value="/{!Payroll_Conveyance__c.Name}">{!Payroll_Conveyance__c.Name}</apex:outputLink>