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
Dhanamjaya PaidipatDhanamjaya Paidipat 

Links(URL) in Visual force page

Hi All,
I have developed a visual force page so i wanted to add URL(link) in this page, Kindly help me on this.

Apex code:

<apex:page standardController="Lead" extensions="CreateLeadC" sidebar="false" showheader="false">

<apex:commandLinkaction =”http://www.google.com/search” value=”Google”>
</apex:commandLinkaction>

<apex:form>
<apex:outputLabel ><b> #Call: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Call_Number__c}"/>

<apex:outputLabel ><b> #Attempt: </b></apex:outputLabel>
<apex:outputField value="{!Lead.Attempt_Number__c}"/>

<apex:pageBlock >
 
 

<apex:pageBlockSection columns="1"  title="Patient details"  rendered="{!Lead.Country__c== 'India'}">


<apex:outputField value="{!Lead.name}"/>
<apex:outputField value="{!Lead.Phone}"/>

<apex:inlineEditSupport />


</apex:pageBlockSection>

<apex:pageBlockSection title="Patient Consent" rendered="{!Lead.Country__c== 'India'}">

<apex:outputField value="{!Lead.Gendre__c}"/>

<apex:inlineEditSupport />

</apex:pageBlockSection>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlock>
                
                
           
</apex:form>

 
</apex:page>
GrumpyDevGrumpyDev
Hi,

Do you mean something like : 

 
<apex:outputLink value="https://www.salesforce.com" id="theLink">www.salesforce.com</apex:outputLink>
Source:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_outputLink.htm
 
Dhanamjaya PaidipatDhanamjaya Paidipat
Yes Exactly GrumpyDev.