This project is not covered by Drupal’s security advisory policy.

OneBlink Form Embed lets you add OneBlink forms to your Drupal site without custom code. Place a block anywhere, or add a field to a content type so editors can choose a form on each page.

OneBlink is a platform for building online forms. You build and manage forms in OneBlink, and this module displays them on your Drupal site.

Features

There are two ways to embed a form:

  • OneBlink Form block: place it in any region through Block layout, or on a single page with Layout Builder. This suits site builders putting a form in a fixed spot, such as a contact form in a sidebar.
  • OneBlink form field: add it to a content type or paragraph type, so editors set the form ID while editing content. This suits sites where each page may show a different form.

Both options render forms the same way and support the same settings:

  • Form ID (the only required setting).
  • Optional Forms App ID and scrollable container.
  • Optional redirect URLs for after the form is submitted or cancelled. If you leave these blank, the form's own settings in OneBlink are used.
  • You can place several forms on the same page.
  • Loads the OneBlink script through Drupal's library system, so it fits in with caching and asset handling.

Use this module when your organisation already builds forms in OneBlink and wants them on its Drupal site without editing templates or pasting embed scripts into content.

Post-Installation

Enable OneBlink Form Embed under Extend, then clear caches. Then use either or both options:

Using the block

  1. Go to Structure > Block layout and click Place block next to a region. You can also add the block in Layout Builder.
  2. Choose OneBlink Form from the OneBlink category.
  3. Enter your OneBlink Form ID and any optional settings, then save.

Using the field

  1. Go to Structure > Content types (or Paragraph types) and choose Manage fields.
  2. Add a field and select OneBlink form as the field type.
  3. When editors create or edit content, they enter the Form ID and any optional settings in the field.

The module doesn't add a separate config page, content type or text format. Settings are stored on each block or field.

Additional Requirements

  • Drupal 10 or 11. No other contributed modules are needed.
  • A OneBlink account with at least one published form.
  • Visitors' browsers must be able to load the OneBlink Forms CDN script and Google's Material Icons font.
  • Layout Builder (in Drupal core) lets you place the block on individual pages.
  • Paragraphs lets editors add a OneBlink form field as a component anywhere in a page's content.

Supporting this Module

This module is maintained by OneBlink. To report a bug or request a feature, contact support@oneblink.io.

Project information

Releases