Formcrafts - a form and survey platform for Salesforce, HubSpot, etc
  1. Templates
    1. All templates illustration
      All templates
    2. Application forms illustration
      Application forms
    3. Calculation forms illustration
      Calculation forms
    4. Lead generation forms illustration
      Lead generation forms
    5. Customer service illustration
      Customer service
    6. Evaluation forms illustration
      Evaluation forms
    7. Survey and feedback illustration
      Survey and feedback
    8. Operations forms illustration
      Operations forms
    9. Payment forms illustration
      Payment forms
    10. Booking and registration illustration
      Booking and registration
    11. Salesforce forms illustration
      Salesforce forms
    12. Other forms illustration
      Other forms
  2. Features
    1. 18 Form Fields illustration
      18 Form Fields
    2. 19 Integrations illustration
      19 Integrations
    3. Conditional Logic illustration
      Conditional Logic
    4. Multi-step Forms illustration
      Multi-step Forms
    5. Calculations illustration
      Calculations
    6. Partial Submissions illustration
      Partial Submissions
    7. Save & Resume illustration
      Save & Resume
    8. Payments illustration
      Payments
    9. Hidden Fields illustration
      Hidden Fields
    10. Dynamic Dropdowns illustration
      Dynamic Dropdowns
    11. Engagement analysis illustration
      Engagement analysis
    12. Multilingual forms illustration
      Multilingual forms
  3. Pricing
  4. Help
  5. Login
  6. Signup
    →
  • Help index
  • Features
    • Conditional logic
    • Prefill forms
    • Multi-step forms
    • Calculations
    • Partial submissions
    • Field references
    • Save and resume
    • Hidden fields
    • Dynamic lookup
    • Workflows
    • Dynamic dropdowns
    • Multilingual forms
    • Privacy mode
    • Success message
    • Form redirect
    • GA/GTM
    • Accept payments
    • Linked forms
    • Disable form
  • Styling
    • Custom CSS
    • Custom fonts
    • Color scheme
    • Form background
  • Analytics
    • Test mode
    • Overview
    • Field analytics
    • Form engagement
  • Workflows
    • Send emails
    • Form redirect
    • Success message
    • Webhooks
    • Create PDF
    • ActiveCampaign
    • Asana
    • Mailchimp
    • Front app
    • Freshdesk
    • Google Sheets
    • Pipedrive
    • Linear
    • Klaviyo
  • Sharing
    • Custom form link
    • Embed on a page (inline)
    • Embed on a page (popup)
    • Embed in emails
    • Embed on WordPress
    • Embed on Shopify
    • Embed on Squarespace
  • Salesforce
    • Overview
    • Create records
    • Update records
    • Related records
    • Dynamic picklists
    • Attach files
    • Create PDFs
    • Form prefill
    • Experience Cloud
  • HubSpot
    • Overview
    • Create contact form
    • Create lead capture form
    • Create customer survey
    • Prefill HubSpot form
    • Embed on HubSpot page
    • Uninstall
  • Zendesk
    • Create ticket form
    • Create CSAT survey
    • Embed on Help Center
    • Prefill ticket form
  • Admin
    • Users
    • Custom domain
    • Vanity subdomain
    • Subscription
  • Developers
    • Embed Library
    • API keys
    • API v1
    • API v2
  • Others
    • Partner program
    • GDPR compliance
    • Workflow logs
    • White labeling
    • Form speed
    • Zapier
    • Migration
  • Contact
  1. Help
  2. ›
    Salesforce
  3. ›
    Experience Cloud

Embed a Form in Salesforce Experience Cloud

On this page
  1. Introduction
  2. Step 1: Trusted Sites for Scripts
  3. Step 2: Add embed.js to Header
  4. Step 3: Use the Embed Code
  5. Notes

Introduction

Salesforce Experience Cloud (formerly known as Community Cloud) allows you to create branded digital experiences (or websites). You can easily embed Formcrafts forms into your Experience Cloud sites.

This guide will walk you through the three main steps to embed your form in a Salesforce Experience Cloud website.

Step 1: Trusted Sites for Scripts

First, you need to configure your Experience Cloud security settings to allow the Formcrafts script to load.

  1. In the Experience Builder, navigate to Settings → Security & Privacy
  2. Under Trusted Sites for Scripts click on Add Trusted Site
  3. Enter https://app.formcrafts.com in the URL field
  4. Click Add Site
Adding app.formcrafts.com to Trusted Sites

This step ensures that Formcrafts scripts can execute properly within your Experience Cloud environment.

Step 2: Add embed.js to Header

Next, you need to add the Formcrafts embed script to your Experience Cloud site header.

  1. Now go to the Advanced section in the left sidebar
  2. Under Head Markup, click on Edit Head Markup, and add the following script tag:
<script src="https://app.formcrafts.com/embed.js"></script>
  1. Click Save to apply the changes

This script enables the form embedding functionality across your entire Experience Cloud site.

Step 3: Use the Embed Code

We now have to grab the embed code. Please follow these steps to find the embed code for your form.

Your embed code looks something like this:

<div data-fc-key="abcd1234" style="max-width:500px; height:600px"></div><script src="https://app.formcrafts.com/embed.js"></script>

Copy the first half of the code (the div part). Next,

  1. Add an HTML Editor component to your Experience Cloud page
  2. Paste the div part of the embed code into the HTML Editor (via Edit Markup)
  3. Click Save to apply the changes
Adding the embed code to the HTML Editor

Notes

  • You can use Formcrafts’ fallback embed code as well. This will allow you to skip the first two steps. However, this is not recommended since certain features (like prefill, redirect, Google Analytics, etc.) may not work properly with the fallback embed code.
Minimal, fast, and powerful. Try now.
Formcrafts - a form and survey platform for Salesforce, HubSpot, etc

Subtle Web Inc,
225 Railway St E,
T4C 2C3, Cochrane AB

Salesforce AppExchange partner logo HubSpot app partner logo
Templates
Application formsLead generation formsSurvey & feedback formsEvaluation formsSupport request formsBooking & registrationContact forms
Comparisons
vs AllFormAssemblyTypeformJotformWufooSurveyMonkey
Features
Conditional logicSalesforce formsHubSpot formsZendesk ticket formsEmail formsIntegrationsForm fields
Resources
Help centerBlogDeveloper APIGDPRStatusReport abuseContact us
Company
About usNonprofitCase studiesSecurityTerms and privacy