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
RockersRockers 

How to provide hyperlink dynamically in VFPage

Hi,

 

      I have an Object called Event. In that, we have a field called "Navigation Link" which is used to store the URL Address.

For this field, i used Text field. Based on this, we developed a Page showing the details from the Object. In that page,there we need to give a link for image. when clicking on that image, the result is to open the corresponding url page.

 

      In my page design, i used <apex:repeat> to display the contents of the Object based on the Date by select Query.

 

     Actually, all the details are coming except the link details. Hyperlink is working. But, when we click on it, an blank page is opening.

   

    Friends, pls help me to solve this, how to provide url dynamically in VF Pages.

 

Regards,

Phanikumar

Kevin SwiggumKevin Swiggum

Are you using <apex:outputLink>?

 

e.g.

<apex:outputLink value="{!evnt.navigation_link__c}" target="_blank">Click here</apex:outputLink>

 

Details here

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_outputLink.htm

RockersRockers

Hi Friend,

 

            Thanks for your reply. I am using same tab <apex:outputlink> and as mentioned in example, iam providing url from the object. So, it is working fine. While clicking on the link, it is going to open a blank page in new window. So, pls help me to solve this.

 

Regards,

Phanikumar