Skip to content

Embed Code

The embed code is a small HTML snippet you paste into your website. It loads your FieldFlow directory directly on your page.

  1. Go to your project’s Publish tab
  2. In the Embed on your site section:
    • Choose an embed type: Directory only, Quiz only, or Quiz + Directory
    • Choose a theme: System (follows visitor’s device), Light, or Dark
  3. Copy the generated snippet

A typical embed looks like this:

<div id="fieldflow-directory"></div>
<script src="https://app.getfieldflow.io/embed.js"></script>
<script>
window.FieldFlow = window.FieldFlow || { q: [] };
window.FieldFlow.q.push({
projectId: "your-project-id",
apiKey: "ff_live_your_api_key",
container: "#fieldflow-directory",
apiBaseUrl: "https://app.getfieldflow.io",
options: {
showSearch: true,
showFilters: true,
itemsPerPage: 20
}
});
</script>
OptionDefaultDescription
projectId(required)Your FieldFlow project UUID
apiKey(required)API key from the Publish tab
container(required)CSS selector for the HTML element to render into
apiBaseUrl(required)Always https://app.getfieldflow.io
mode"directory""directory", "quiz", or "quiz+directory"
options.showSearchtrueShow the search box
options.showFilterstrueShow the filter sidebar
options.itemsPerPage20Records per page

Shows the full searchable, filterable directory. This is the default.

Shows the Quiz Flow without the directory. After completing the quiz, users see filtered results.

Shows the quiz first, then reveals the directory filtered by the user’s answers. Users can also click “View Full Directory” to see everything.

  • System — follows the visitor’s device preference (light or dark mode)
  • Light — always light background
  • Dark — always dark background

You can pre-select taxonomy filters in the embed code so the directory loads with specific categories already active. Enable this in the Publish tab under Start with filters.

Once you have your embed code, paste it into your website. See the platform-specific guides: