You need to sign in to do that
Don't have an account?

i have a vf page having account name email and owner so i want to hyperlink on account name please help me
<apex:page controller="clsAccountControl" > <apex:form > <apex:pageBlock title="Account Details" > <apex:pageBlockTable value="{!acclist}" var="a" id="mid" > <apex:column value="{!a.Name}" headerValue="Account Name" /> <apex:column value="{!a.OwnerId }" headerValue="Owner" /> <apex:column value="{!a.Custom_Emaail__c }" headerValue="Email" /> <apex:column value="{!a.BillingCity }" headerValue="BillingCity " /> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page> ------------------------------------------------------------------- public class clsAccountControl { public List<Account> acclist {set;get;} public clsAccountControl() { acclist=[Select Name,BillingCity,Custom_Emaail__c ,OwnerId from Account LIMIT 10 OFFSET 10]; } }
<apex:column value="{!a.Name}" headerValue="Account Name" />
with
<apex:outputLink value="/{!a.Id}" target="_top">{!a.Name}</apex:outputLink>
All Answers
Please try the below code I have updated accordingly using outline.
Happy to help you !
You can learn visualforce code through developer.salesforce.com forum or try habit of solving trail from trailhead.salesforce.com.
And if the above solution worked for you please mark it best answer.
Happy to help you !!
<apex:column value="{!a.Name}" headerValue="Account Name" />
with
<apex:outputLink value="/{!a.Id}" target="_top">{!a.Name}</apex:outputLink>