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
SeptSept 

Unable to add custom link on visual force page

I am working on this project where I have downloaded the managed app into my salesforce. I am hosting visual force page on our internal website where people can go and signup for volunteer work.

 

My problem is that I want to display a link / URL on the visual force page, when the user will click this link it should open a PDF file. But unfortunately this is managed app and I can't add the link by editing the code in the Visual force page. I was hoping is someone can direct me how to do this. Its very critical.

sandeep@Salesforcesandeep@Salesforce

You can not add it because it is managed and it requires bindingd with controller. but you can do this by ussing anchor tag <a href="" />

SeptSept

Thanks Sandeep for quick response but I am newbie to the salesforce. Can you please guide me as to where / how to use this anchor tag.

 

Will really appreciate your quick reply.

Thanks

Ashish_SFDCAshish_SFDC

Hi Sept, 

 

See the sample syntax, 

 


String link = '<a href="https://ap1.salesforce.com/'+ accName +'">Agency Name '+ accName + '</a>'; account.addError('This account already exists.The duplicate account is:'+link) ;

Regards,

Ashish