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
SurenderSurender 

Calling VisualForce page from Home Components of type HTML - Urgent

Hi,

 


While creating Home page Components i choose component of Type HTML Area to display it in wide region.

 

From this i want to call Visual Force page for that i wrote like below

 

<HTML>

<a href=URL.getSalesforceBaseUrl().toExternalForm()+'/apex/UsePolicyTest'>Click Here</a>

</HTML>


But it is showing as is in the Home Page and it is not calling VisualForce Page.


Can anyone please share ideas on how to call Visual Force Page from here..

dsinghdsingh

Try to use iframe while creating home page component. for eg:

<iframe height="100" src="/apex/UsePolicyTest?core.apexpages.devmode.url=1" frameborder="0" width="100%"> </iframe>

 

Please mind that there should be no blank line in the begining of the HTML area.

SurenderSurender

Hi,

 

I have requirement like in the home page component of type HTML area, how can i get the information about the Opportunity recod.

 

i want this because based Opportunity record values i want to display some buttons.

 

Please share your thoughts and sample code if any on this.

 

 

dsinghdsingh

Hi,

 

Why do you want info of opportunity records in a home page component?

Can you please elaborate the scenario.

 

-

Digvijay Singh