EventSpark Home

Embed the Event Registration Form or an Upcoming Events Page

The following configuration requires a Salesforce System Admin.

To embed event registration forms and upcoming events page, you have to enable Clickjack Protection Level and grant the Site Guest User access to the Visualforce page event01register on the EventSpark Site.

Enable Clickjack Protection Level
  • Go to Setup Home tab

  • Search for Site on the Quick Search

  • Click on Site

  • Click on the EventSpark Site

  • Click Edit

  • On Clickjack Protection Level, select your preferred option of protection.

  • Click Save

Clickjack Protection Levels include, "Allow framing by any page(No Protection)", "Allow framing of site pages on external domains (Good protection)", "Allow framing by the same origin only (Recommended)" and "Don't allow framing by any page (Most Potection)"

Granting the Site Guest User access to the Visualforce page event01register

Assuming you’re still on the Site setup

  • Click on Public Access Settings

  • Click on Visualforce Page Access

  • Click Edit

  • Select the evento1register Visualforce page

  • Click Save.

NB: Registration Completed URL redirection on iFrame only works with other sites. Some hosts do not allow their sites to be iFramed. Please make sure that the URL provided can be iFramed.


Define Trusted Domains under Session Settings

If selecting any of the following Clickjack Protection Levels, "Allow framing of site pages on external domains (Good protection)", "Allow framing by the same origin only (Recommended)" and "Don't allow framing by any page (Most Potection)" you will need to define Trusted Domains. If you have selected "Allow framing by any page(No Protection)" you will not need to define Trusted Domains.

  • Go to Setup Home tab

  • Search for Session Settings under the Quick Find

  • Scroll down to the "Clickjack Protection" section

    • Check the boxes for

      • Enable clickjack protection for customer Visualforce pages with standard headers

      • Enable clickjack protection for customer Visualforce pages with headers disabled

  • Once you have done so, you can now add your Trusted Domains

    • Click "Add Domain"

  • Paste your Trusted Domain in the Domain field, and select your IFrame Type as "Visualforce Pages"

    • Click Save, or Save& New if you wish to add more Trusted Domains

  • Click Save

Embedded event registration forms

This feature allows an EventSpark registration form or an EventSpark microsite to be embedded in an external web page using an iframe HTML element.

  1. Event Microsite without header and footer: The format of the iframe src attribute value is: The Event Home Page(Microsite) Domain/event/home/<event friendly name URL>?layout=embedded

    1. Example: https://sandbox-data-power-2781-dev-ed-17a9be6f229.cs87.force.com/event/home/pre_basecamp_2021?layout=embedded

  2. Event registration form only: The format of the iframe src attribute value is: The Event Home Page(Microsite) Domain/evsprk__event01register?id=eventId&layout=embedded

    1. https://sandbox-data-power-2781-dev-ed-17a9be6f229.cs87.force.com/evsprk__event01register?id=a078E00000IJ9Z5QAL&layout=embedded

Embedded Upcoming Events Page

This feature allows an EventSpark upcoming events page to be embedded in an external web page using an iframe HTML element. An upcoming events page has five different views namely list, compact, panel, location and calendar. The view option is passed as a parameter in a URL which is the iframe src attribute value. The format is:

The Event Home Page(Microsite) Domain/?layout=embedded&view=(list | compact | panel)

  1. List example: https://sandbox-data-power-2781-dev-ed-17a9be6f229.cs87.force.com/?layout=embedded&view=list

  2. Compact example: https://sandbox-data-power-2781-dev-ed-17a9be6f229.cs87.force.com/?layout=embedded&view=compact

Click on the below link to see an example of how the embedded pages will look on your page.

Embedded Pages