Forminal

Add a Slider

A slider puts a small tab on the edge of your page. Clicking it opens your form as a full-height panel on that side, which suits short feedback forms that people open while they read. By the end of this guide the tab will be on your site.

Set up the slider

  1. Publish the form. The Share panel opens on its Embed tab. To open it later, select Share in the builder’s top bar.
  2. Under Embed on Your Site, pick Slider.
  3. Under Options, set the Tab Text, Slides From and Width. The sample page next to the panel shows the tab, and clicking it there opens the panel.
  4. Under Where Is Your Site Built?, pick your site builder to see where the code goes, then select Copy Code.

The code writes only the settings you changed. Here it is with APP_ADDRESS and FORM_ID in place of the app’s address and your form’s id:

<script src="APP_ADDRESS/embed.js" async></script>
<div data-slider="FORM_ID" data-text="Give feedback" data-side="left" data-width="480" hidden></div>

Slider settings

  • Tab Text is what the tab says, on one line, up to 30 characters. It reads “Feedback” unless you change it (data-text). The text always faces the edge the tab hangs on, so a tab on the right reads the other way from one on the left.
  • Slides From puts the tab and the panel on the Right, the default, or on the Left (data-side="left"). On a right-to-left site the tab stays on the side you chose, and right-to-left tab text reads correctly.
  • Width takes 320 to 720 pixels, 420 unless you change it (data-width). On a screen narrower than 640 pixels, such as a phone, the panel fills the whole screen.

Add it to your site

  1. Paste the code into your page’s HTML, for example just before the closing body tag. The tab places itself, so where the code sits on the page doesn’t matter.
  2. To show the tab on every page, paste the code into your site’s footer or custom code setting instead. There are step-by-step guides for WordPress, Webflow, Shopify, Squarespace and Wix.
  3. Save the page, open it and click the tab to try it.

The tab sits halfway down the edge of the screen. Clicking it dims the page and opens your form as a full-height panel on that side, filled with the form’s background. People close it with the ×, the Escape key or a click on the dimmed page. After someone submits, the panel shows your confirmation message and closes 2 seconds later.

Good to know

  • Only published forms open for visitors.
  • The tab is dark with white text. You can change its text and its side, but not its color.
  • The slider uses the same script as the inline embed, and a page needs it only once.
  • The form gets your page’s query string, so a visit with ?ref=newsletter fills a hidden field named ref.
  • The slider itself stores nothing in the visitor’s browser. The form’s own settings, such as Remember Answers, still apply.
  • Your choices are saved with the form. If you change them later, copy the code again. Your code can react when the panel opens and closes; see Listen for embed events.

Frequently asked questions

How does the slider look on a phone?

On a screen narrower than 640 pixels the panel fills the whole screen, whatever width you set.

How do people close the slider?

With the × in the panel, the Escape key, or a click on the dimmed page beside it. It also closes 2 seconds after someone submits.

Can I change the tab’s color?

No. The tab is dark with white text. You can change its text and the side it sits on.

Do hidden fields work in the slider?

Yes. The form gets your page’s query string, so a visit with ?ref=newsletter fills a hidden field named ref.

Related feature: Embed Forms