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
RichardR1RichardR1 

Visualforce Page as a Lightning Dashboard Component

Hi guys,

Why are VF pages not available to be displayed in Dashboard in Lightning?
Best Answer chosen by RichardR1
Nayana KNayana K
Visualforce pages that use the Standard Controller can’t be used in dashboards. To be included in a dashboard, a Visualforce page must have either no controller, use a custom controller, or reference a page bound to the StandardSetController Class. If a Visualforce page does not meet these requirements, it does not appear as an option in the dashboard component Visualforce Page drop-down list.

Please check if your page is meeting this requirement!

All Answers

Nayana KNayana K
Visualforce pages that use the Standard Controller can’t be used in dashboards. To be included in a dashboard, a Visualforce page must have either no controller, use a custom controller, or reference a page bound to the StandardSetController Class. If a Visualforce page does not meet these requirements, it does not appear as an option in the dashboard component Visualforce Page drop-down list.

Please check if your page is meeting this requirement!
This was selected as the best answer
RichardR1RichardR1
Nayana, I think the Visualforce page worked in Dashboard in Classic, but not in Lightning Dashboard.