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
cinov8cinov8 

Task Subject as a Link

I am trying to display a list of Tasks in a Visualforce page.  Right now, when I display the "Subject" field it appears as text.  Is there a way to get this to display as a link much the same way as it would if being viewed on the home page or in any related list?  Thanks.
Best Answer chosen by Admin (Salesforce Developers) 
Ron HessRon Hess

you can construct this link

 

 

<a href="/{!task.id}">{!task.subject}</a>