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
Amber090Amber090 

Open a record from a VF page

Our users want to be able to open a case record from a visualforce page.  Currently, it just displays as an outputfield (not clickable).  How can I make the case field clickable to open the record?
Best Answer chosen by Amber090
Krishna SambarajuKrishna Sambaraju
You can make that fied as a link using apex:outputLink as below.
<apex:outputLink value="/{!Case.Id}">
    <apex:outputText value="{!DO # field}"/>
</apex:outputLink>
That should make that field as a link and clicking on that will navigate to the case record.

All Answers

Krishna SambarajuKrishna Sambaraju
Hi,

Can you give some more information or share the VF page?

Regards,
Krishna.
Amber090Amber090
This is the first part of the page. We would want a user to be able to select the “DO #” field to open the Case record: td {padding-right: 15px;}
Krishna SambarajuKrishna Sambaraju
Just to be clear, is that dropdown list on the VF page that displays a list and when a value is selected it should navigate to that particular case record?
Amber090Amber090
No, it’s a table view of all Case records (filtered by a record type). The dropdown list part is adding an additional/interactive filter & sort by each of the headers in the table. This allows users a quick SF1-friendly view of their pending Case records and be able to easily edit only 1 field DO# (Outputfield) PO#(Inputfield) We would want the user to be able to select the DO# and have it open the Case Record.
Krishna SambarajuKrishna Sambaraju
You can make that fied as a link using apex:outputLink as below.
<apex:outputLink value="/{!Case.Id}">
    <apex:outputText value="{!DO # field}"/>
</apex:outputLink>
That should make that field as a link and clicking on that will navigate to the case record.
This was selected as the best answer