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
Karleen MendozaKarleen Mendoza 

Can you display a specific record in a visualforce page to put into a home page component?

Our support department is responsible for different Task types everyday. I created a custom object and record for our Support Manager in which he can update the fields for the different Task types as need. Is there a way to display this record on the Home Page via a VisualForce Page? 
User-added image


I tried displaying it on the VFP using a report, but that doesn't seem to be working for me either. 

This is the code I was using:
<apex:page > <iframe src="https://cs91.salesforce.com/00O2F000000OFQh?isdtp=mn" style="border:none; width:1024px; height:480px"></iframe> </apex:page>


But I kept getting this error:
Error Warning: The element type "div" should be terminated by the matching end-tag "</div>" in c__accounthierarchytree at line 71


Best Answer chosen by Karleen Mendoza
Karleen MendozaKarleen Mendoza
This was solved. View solution here: https://developer.salesforce.com/forums/ForumsMain?id=9060G000000MUsqQAG
 

All Answers

Suraj TripathiSuraj Tripathi


Hi Karleen,

In order to add the visualforce page to the home page, you first need to create a Component. Below are the steps to create the Component.
1. Go to setup.
2. Search Home Page Component under Customize tab
3. In Custom Component click Add to create a new custom component.
4. Write the name of the You want to add and Select the VisualForce Page, click Next.
5. In Visualforce Page Dropdown, select your visualforce page you have created and set the height according to your requirements and Click Save.
6. Once the component is created, go to quick find box again and Search Home Page Layout under Customize tab.
7. Click Edit on DE Default Name.
8. Under Select Wide Components to Show Select the Component which you have created from the above steps.
9. Click Next - > Arrange the Component to show on top (According to the requirements) -> Click Save and Assign.
10. That's all! Your visualforce is been added to the Home page.

Hope it Helps you. Mark this answer Solved if it resolves your query.

Regards ,
Suraj

Karleen MendozaKarleen Mendoza
Thanks for the reply Suraj. I did that and it gave me the error above. I don't understand why it's giving me the DIV error
Suraj TripathiSuraj Tripathi


Hi Karleen,

If it is possible to share the visualforce page code then please do share the code, so that I can check and will be providing you the best possible solution to add the visualforce page on Home Page.

Regards,
Suraj

Karleen MendozaKarleen Mendoza
<apex:page > <iframe src="https://cs91.salesforce.com/00O2F000000OFQh?isdtp=mn" style="border:none; width:1024px; height:480px"></iframe> </apex:page>

 
Karleen MendozaKarleen Mendoza
This was solved. View solution here: https://developer.salesforce.com/forums/ForumsMain?id=9060G000000MUsqQAG
 
This was selected as the best answer