Overview

Passing data to your embedded Fillout form can be used to:

Pass dynamic URL parameters (hidden fields) to your embed

1. Register URL parameters, if you haven’t yet.

Add your parameter in the Settings page of your form. More information here.

Screenshot 2025-02-18 at 3.24.41 PM.png

2. Paste the code

Select one of the Embed options followed by Get the code. Then paste into your site.

Screenshot 2025-02-18 at 3.25.32 PM.png

You can optionally customize how the embed and button will look.

Screenshot 2025-02-18 at 3.26.33 PM.png

3. In the Embed code, add data attributes for each URL parameter

To pass a URL parameter to the embed, add a data-[parameter] attribute to the element in the snippet.

For example, if you’re embedding this form on your site which is a Facebook-related campaign, and you have a URL parameter of ref, you can use data-ref="Facebook". Your embedding code will look something like this: