Placing forms
There are four ways to put a form on a page, and they all produce the same result. Use the one that matches how you build your site.
| Way | Use it when | Options |
|---|---|---|
| Block | The form belongs to a region of the site or a layout, not to one text | Form, embed type, language, width, minimum height |
| Field | Each item of a content type has a form of its own, such as a course with its enrolment form | The same |
| Editor button | Authors want the form in the middle of a text | The same |
| Tag | You write the text yourself, or the format has no CKEditor | The same, plus shadow_dom |
To choose from the list, a user needs Use Doxtly Forms, which only administrators have until you give it to other roles. A page can hold several forms, and the same form more than once.
The block
Section titled “The block”-
Go to Structure → Block layout and click Place block beside a region.
-
Type “doxtly” in the filter and click Place block beside Doxtly Form, which is in the Forms category.

-
Choose the form under Form.

-
Under Visibility, say where it shows, such as Pages, and click Save block.
| Setting | What it does | Default |
|---|---|---|
| Form | Which form to show. Required in the block. See What the Form field offers. | None |
| Embed Type | Native Embed draws the form inside your page. Iframe Embed shows it in a frame. See Native or iframe. | Native Embed |
| Language | Auto-detect, English, Polski, Español, Deutsch, Português, Français, Українська, ไทย, 简体中文, हिन्दी, العربية, 日本語, Türkçe or Italiano, for the texts Doxtly adds around your fields: buttons, messages, date pickers. See Languages. | Auto-detect |
| Width | The form’s width, such as 100% or 600px. |
100% |
| Minimum Height | The space the form always takes up, such as 400px, so the text below does not jump while it loads. The form grows past it as needed. A short form still takes this much room, so lower it for one. |
400px |
| Isolate from the site’s styles | Keeps your site’s CSS away from what is embedded, and lets it in when off. Offered for Native Embed only. See Styling. | On |
| Doxtly theme | The theme it is shown in: Theme set in Doxtly, or another theme of your organization. See Doxtly theme and background. | Theme set in Doxtly |
| Transparent background | Leaves out the theme’s page background, so your page’s own shows around the card. | Off |
Width and Minimum Height take a number with a unit: px, %, em, rem, vh or vw. Your browser refuses anything else when you save. The form is never wider than the space it stands in, so 640px still fits a phone, and a theme’s content column limits it as well.
The block’s title is hidden unless you tick Display title.
In Layout Builder
Section titled “In Layout Builder”Available when: Layout Builder is enabled on your site
On a layout, click Add block, find Doxtly Form and choose the form in the panel that opens on the right. The settings are the same as above.

The layout itself shows “Doxtly Form:” and the form’s ID where the form will stand. The form does not run there, so nobody can send a test submission by accident. To see it, save the layout and open the page.
The field
Section titled “The field”A Doxtly form field gives each item of a content type its own form. Northbridge Advisory has one on its training articles, so whoever writes about a course also picks that course’s enrolment form.
-
Go to Structure → Content types, and on your content type choose Manage fields.
-
Click Create a new field, choose Doxtly form and give the field a label, such as “Application form”.

-
Finish with Continue and Save.
Authors now find the field when they edit an item, with the same settings as the block. Only an item with a form chosen shows one.

Tick Required field in the field’s settings if every item needs a form. Under Manage display, you decide where the form stands among the item’s other fields.
The editor button
Section titled “The editor button”Available when: the text format uses CKEditor 5
The button and the filter belong to a text format, so set them up once for each format your authors use.
-
Go to Configuration → Content authoring → Text formats and editors and click Configure beside a format, such as Basic HTML.
-
Under Toolbar configuration, drag the Doxtly button from Available buttons to Active toolbar. With the keyboard, focus the button and press the down arrow.

-
Under Enabled filters, tick Doxtly forms.

-
Click Save configuration.
The filter turns tags into forms, so a button without the filter leaves the tag on the page as plain text. Its place in Filter processing order doesn’t matter, and it works together with Limit allowed HTML tags and correct faulty HTML: you don’t need to allow anything extra in the format.
To place a form:
-
Put the cursor on an empty line and click the Doxtly button. The tooltip says Doxtly Form.

-
On the Form tab, choose the form and adjust the settings if you need to. They are the same as in the block.

-
Click Insert, and save the page.
A tag goes into the text. On the page it turns into the form, and the paragraph it stands in goes with it. The form does not run in the editor, so nobody can send a test submission by accident.

The tag
Section titled “The tag”A tag is a short piece of text in square brackets that Drupal swaps for the form when it shows the page. It works in any text format with the Doxtly forms filter, with or without CKEditor, and it needs no permission: anyone who may use the format can write one.
[doxtly_form id="sAFZpCfzVDHA4ZGG7cg-mHG1Vz3Q6gSgRdoEtCpaLio"]You don’t have to write it yourself. The editor button does, and the settings page has one to copy. In Doxtly, the ID is the last part of the form’s link in its Share dialog.
| Attribute | What it does | Values | Default |
|---|---|---|---|
id |
The form. Required. | The form’s ID | |
type |
The embed type. | embed or iframe |
embed |
width |
The form’s width. | A number with a unit, as for the block | 100% |
min_height |
The space the form always takes up. | The same | 400px |
language |
The language of Doxtly’s own texts. | en, pl, es, de, pt, fr, uk, th, zh, hi, ar, ja, tr or it |
Detected |
shadow_dom |
false lets your theme’s styles reach the form. Native embed only. See Styling. |
true or false |
true |
theme |
A Doxtly theme to show it in instead of the one set in Doxtly. See Doxtly theme and background. | The theme’s ID, or a built-in one: branding, standard, neutral, calm, bold, exam or dark |
The theme set in Doxtly |
transparent |
true leaves out the theme’s page background, so your page’s own shows around the card. |
true or false |
false |
A full example, for a narrower form that is always in Polish:
[doxtly_form id="sAFZpCfzVDHA4ZGG7cg-mHG1Vz3Q6gSgRdoEtCpaLio" type="iframe" width="640px" min_height="600px" language="pl"]A value that is not allowed does no harm: the module uses the default instead. Only id stops the form. Without one, the page shows “Doxtly Forms: Form ID is required.”, and one that cannot be an ID shows “Doxtly Forms: Form ID is invalid.”
shadow_dom exists only in the tag. The block, the field and the button’s Form tab don’t offer it.
Teasers
Section titled “Teasers”A teaser that Drupal trims from the body leaves the form out and shows the text around it, because a form cut in half would be of no use. To show a form in a teaser, put the tag into the item’s Summary.
What the Form field offers
Section titled “What the Form field offers”The Form field in the block, the field and the editor button depends on what the module knows about your forms.
| Situation | What you get |
|---|---|
| The user lacks Use Doxtly Forms | A field to type the ID into, in the block and the field. The editor button is greyed out. |
| No access key saved | A field to paste the ID into, and a reminder that a key would give you a list |
| The list loaded | A list of your active forms, sorted by title. You can’t type here, so a typo or a draft can’t reach a page. |
| No active forms in Doxtly | “No forms to choose from.”, with a note to set a form as active and refresh |
| The list failed to load | The reason, and a field for the ID, so a connection problem never stops anyone from editing a page |

Drupal keeps a loaded list for ten minutes, so opening an edit page stays quick. If you have just made a form active, click the refresh button next to the field. All the fields on a page share one list, so one click updates them all. The list holds up to a thousand forms.

A form that is no longer available
Section titled “A form that is no longer available”A block or field can hold a form the list does not have: it was deleted, set to inactive, belongs to another organization, or was typed in while the list was failing. The module never swaps it silently. The field shows Unavailable form, and a warning explains why.

Choose another form from the list. If there is nothing to choose from, Remove the saved form clears the field. Until you act, visitors see what Doxtly answers for that form, usually Form not found.
A tag in a text gets no such warning: check the page itself.
Native or iframe
Section titled “Native or iframe”Both embed types show the same form, and in both the height follows the form, so there are no inner scrollbars. Native is the default and suits most sites.
| Native Embed | Iframe Embed | |
|---|---|---|
| Where the form lives | Inside your page, in a sealed area your theme’s CSS can’t reach | In a frame, fully separate from your page |
| Font | Inherited from your page | The visitor’s system font |
| Background | Your page’s | White |
| Going on to signing | Your page moves to the signing page, so the link passes through your page’s scripts | The frame opens the signing page, and your page never sees the link |
| With Validate request origin | List your website’s address | List your Doxtly address, such as https://app.doxtly.com |
Choose Iframe Embed if scripts or styles on your site get in the way of the form, or if you don’t want analytics or chat scripts on your page anywhere near a signing link.

Doxtly theme and background
Section titled “Doxtly theme and background”A form, a quiz or a survey appears in the theme chosen for it in Doxtly - its colours, font and custom CSS - with either embed type, and the theme stays inside it: it never restyles the rest of your page. To show one place differently, such as the same survey on two sites with different looks, choose another theme of your organization under Doxtly theme, in the block or in the dialog of the editor button, and for a field in its display settings (the gear of the field on Manage display), or give a tag the theme’s ID in theme. Theme set in Doxtly, the default, follows whatever the form, quiz or survey uses in Doxtly, also when that changes later. A theme of another organization, or one deleted since, is ignored, and the one set in Doxtly is shown.
Transparent background leaves out the theme’s page background, so your page’s own shows around the card. The card itself, with its colours and corners, stays. In a tag, transparent="true" does the same.
The list of themes needs the Read themes of public pages permission on the access key. Without it, or without a key, the field says why, and you can leave it on Theme set in Doxtly or type a theme’s ID.
Quizzes and surveys
Section titled “Quizzes and surveys”A quiz or a survey is placed the way a form is, with the same choices. On the Quiz or survey tab of the editor button, choose it and set the same options as for a form, and Insert writes its tag. So do the Doxtly Quiz or Survey block, with the same settings as the form’s block, and the Doxtly quiz or survey field: its widget, Quiz or survey picker, holds Quiz or survey, Embed Type, Language, Width and Minimum height, and its display the look, as for a form’s field. The list holds your active quizzes and surveys, each marked Quiz or Survey, and needs the List quizzes and List surveys permissions; without them, or without a key, you type the token. By hand, the tag takes the same attributes as [doxtly_form]:
[doxtly_quiz id="YOUR-QUIZ-TOKEN"][doxtly_survey id="YOUR-SURVEY-TOKEN" type="iframe"]The id is the token at the end of its public link, after /q/. You don’t have to copy it by hand: under On a website, the Share dialog of the quiz or survey gives you the tag with the token filled in.
With Native Embed, the default, the quiz or survey is drawn inside your page as a form is, sealed from your site’s styles unless you turn the isolation off; with Iframe Embed it is shown in a frame that grows with it. One question per screen and a quiz that asks for the full screen work in both. language also picks the quiz’s language version in that language, if it has one. The parameters in the page’s address reach it, so a page opened with ?key= gives a person their own access. If the quiz or survey accepts only some websites, list your website’s address there, for either embed type.
If its script can’t load, the page shows “This quiz or survey could not be shown here.” with Open it in a new tab, which leads to its own page. The link search finds active quizzes and surveys too, labelled Doxtly quiz and Doxtly survey.
Interactive documents
Section titled “Interactive documents”An interactive document opens on its own page and can’t be embedded, in Drupal or anywhere else. To offer one on your site, link to it: click the Doxtly button and type the document’s name.