Skip to main content Stream TDX Bengaluru on Salesforce+. Start learning the critical skills you need to build and deploy trusted autonomous agents with Agentforce. Register for free.
Hi,

How I can change my record name PRO-00139 as a hyperlink on my pageBlockTable to be able to click on this name and open record?

I'm really new to the Visualforce page and any help would be appreciated.

How to add Hyperlink in Visualforce page on BlockTable?
4 respuestas
  1. 17 oct 2015, 15:06
    Hi Lukasz,

    You can use something link this -

     

    <apex:page standardController="Account">

    <apex:pageBlock >

    <apex:pageBlockTable value="{!Account}" var="acc">

    <apex:column headerValue="Name">

    <apex:outputLink value="/{!acc.id}" target="_blank">

    Name

    </apex:outputLink>

    </apex:column>

    </apex:pageBlockTable>

    </apex:pageBlock>

    </apex:page>

    Please change the value 'target' based on your requirement whether to open the new page in the same window or in a new tab.This target value '_blank' will open the new page in a new tab.

    Please let me know if it helps.

    Regrads,

    Shashi

     
Cargando
0/9000