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
Jason MorrissetteJason Morrissette 

Embed Custom Public Calendar in Visualforce

Seems simple but I want to embed a custom public calendar in a Visuaforce page.  I try using iFrames and they either show nothing or redirect.

These redirect the page entirely:
<iframe src="https://xxx.my.salesforce.com/00U/c?cType=1&cal_lkid=02341000000g22f&isdtp=vw"></iframe>
<iframe src="https://xxx.my.salesforce.com/00U/c?cType=1&cal_lkid=02341000000g22f&isdtp=p1"></iframe>

Without ISDP nothing displays in the frame
<iframe src="https://xxx.my.salesforce.com/00U/c?cType=1&cal_lkid=02341000000g22f"></iframe>

I have used both HTML iFrame as well as the Apex version.

Redirection is not an option because I want to put some buttons above the calendar and as such need it to sit within the page.
Best Answer chosen by Jason Morrissette
Ashish DevAshish Dev
Hi Jason,

IFraming of salesforce pages has been disabled by Salesforce, hence you can not embed a salesforce page like calendar in vf page. Plz refer https://help.salesforce.com/articleView?id=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323&type=1
As a work around you can build custom calendar.

All Answers

Ashish DevAshish Dev
Hi Jason,

IFraming of salesforce pages has been disabled by Salesforce, hence you can not embed a salesforce page like calendar in vf page. Plz refer https://help.salesforce.com/articleView?id=IFRAME-or-Web-Tab-Content-Displays-Blank-Page-1327107637323&type=1
As a work around you can build custom calendar.
This was selected as the best answer
Jason MorrissetteJason Morrissette
Thanks much, at least I now know to stop fighting.