Skip to main content
The raw HTML element is your escape hatch for unlimited customization. When FunnelFox’s built-in elements don’t fit your needs, RAW lets you write custom code to create exactly what you want.
RAW element in Editor

Use cases

Most raw HTML element implementations combine several capabilities: rendering custom HTML/CSS UI, running custom logic, animations, or timers, saving values to hidden fields, and more. Here are the most common visual experience categories you can build:
Learn how to use the Fox API inside raw HTML elements to capture emails from URLs, calculate values from user inputs, route users with dynamic navigation logic, and send custom tracking events.

Create raw HTML

1

Add element

Prompt the AI Chat in Editor to add a Raw HTML element.Or add it manually:
  1. Open the Layers tab.
  2. Click + Add element and go to Media & Display.
  3. Select Raw HTML.
2

Add HTML code

Go to the Parameters tab and add your code in the HTML Content editor. It supports full HTML5 syntax with embedded styles and scripts.
3

Preserve formatting

Use the Preserve Formatting setting to control how the element inherits your funnel’s theme:
  • No (default): The element renders with its own isolated styling.
  • Yes: Inherits theme styles (fonts, colors) from your funnel settings.
Due to element limitations:
  • No server-side execution: All code runs in the browser.
  • No file system access: Can’t read or write local files.
  • No Node.js: Browser JavaScript only.

Examples

Subscribes to weight and height inputs, recalculates BMI on every change, and writes the result both as a named variable and as a typed number write to a hidden field. Handles metric and imperial unit systems, converts inputs to a common base, and clears the output for unrealistic values.
BMI calculator
Fetches the visitor’s country from the ipinfo.io API and renders the country name inline using Intl.DisplayNames. If the request fails or returns no data, falls back to a CSS-blurred placeholder so the screen still looks intentional.
Geolocation personalization
Renders a canvas-based signature pad with clear and confirm buttons. Once the user draws their signature, a celebration popup appears. Confirming the popup navigates to a specific screen using fox.navigation.goToId. Replace screen_lbtuWI7r with your target screen ID.
Signature pad

Next steps