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
Mr. WMr. W 

HTML Home Page Component

I'm trying to create a good looking HTML button template that links to a report in salesforce.  (NOT A CUSTOM LINK ON AN OBJECT).  

 

Could someone help me with the code? I want it to be a straight forward button, where one could easily place the 15 digit URL of individual reports.

 

Many thanks!  

 

  

Best Answer chosen by Admin (Salesforce Developers) 
Jia HuJia Hu
For your idea,
<input type="button" value="Report" style="cursor:pointer;" onclick="location.href='/00ON0000000VoSQ'">

00ON0000000VoSQ is report Id

All Answers

Jia HuJia Hu
For your idea,
<input type="button" value="Report" style="cursor:pointer;" onclick="location.href='/00ON0000000VoSQ'">

00ON0000000VoSQ is report Id
This was selected as the best answer
Mr. WMr. W

Excellent.  I was creating S-Objects and writing the java for them and then referecing those links.  This is much more straight forward.

Nithya sree 10Nithya sree 10
how to create  Html page and create a component and add it to the Home Pagelayout
palala varmapalala varma
Create Html page and create a component and add it to the Home Pagelayout