Skip to content

Placing forms

There are three 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 You edit pages in the WordPress block editor Form, embed type, language, width, minimum height
Elementor widget You build pages with Elementor The same
Shortcode Anywhere else that runs shortcodes, such as the classic editor or a text widget The same, plus shadow_dom

Anyone who can edit posts in WordPress can place a form. A page can hold several forms, and the same form more than once.

  1. In the editor, click the inserter, search for “doxtly” and choose Doxtly Form. You will also find it among the Embeds.

    The block inserter with doxtly typed into the search box and the Doxtly Form block found
  2. Open the block’s settings in the sidebar and choose the form under Form.

    The sidebar of the block with the Form panel and the Display panel holding Embed Type, Language, Width and Minimum Height
  3. Adjust Display if you need to, and publish.

The block appears in the editor as a placeholder with the form’s title and embed type. The form does not run in the editor, so nobody can send a test submission by accident. To see it, use Preview, or open the published page.

The block editor with a Doxtly Form placeholder saying Client onboarding, Type: Native, and the block settings in the sidebar
Setting What it does Default
Form Which form to show. 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. Anything else falls back to the default. 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 also works in the templates of a block theme, in the site editor.

Available when: Elementor is installed and active

  1. In the Elementor panel, search for “doxtly”, or find Doxtly Form under General, and drag it onto the page.

    The Elements panel of Elementor with doxtly in the search box and the Doxtly Form widget
  2. Choose the form under Form Settings.

  3. Publish.

The Elementor editor with the Form Settings panel on the left, showing the form Course certificate request, and the widget's placeholder on the page

The widget has the same settings as the block, with the same names and defaults, all in one Form Settings section. On the page it shows the same placeholder. The refresh button is next to the Form field.

A shortcode is a short piece of text in square brackets that WordPress swaps for something else when it shows the page. It works in the Shortcode block, the classic editor and a text widget.

[doxtly_form id="sAFZpCfzVDHA4ZGG7cg-mHG1Vz3Q6gSgRdoEtCpaLio"]

You don’t have to write it yourself. In Doxtly, open the form’s menu, choose Share and open the WordPress tab under Embed on a website. It gives you the shortcode with the form’s ID filled in, for both embed types.

The WordPress tab of the Share form dialog with the native and iframe shortcodes

In the editor, a shortcode sits in a Shortcode block, here with a width and a language added:

A WordPress page in the editor with a Shortcode block holding doxtly_form with an id, a width of 640px and the language en
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 plugin 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.”

In the block and the widget, shadow_dom is Isolate from the site’s styles, shown for Native Embed.

The field in the block and the widget depends on what the plugin knows about your forms.

Situation What you get
No access key saved A Form ID 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 Form ID field, so a connection problem never stops anyone from editing a page
The Form panel with a Form ID field and a red notice saying Doxtly refused the access key, with an Open the settings link

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

The Form panel of the block with the list of active forms open

A block or widget 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 plugin never swaps it silently. The field shows Unavailable form, the placeholder turns red, and a warning explains why.

The Form panel showing Unavailable form with a yellow warning that the form is not among the active forms of the organization

Choose another form from the list. If there is nothing to choose from, Remove the saved form clears the block. Until you act, visitors see what Doxtly answers for that form, usually Form not found.

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.

The Training page of the website with an enrolment form shown through Iframe Embed, in a system font on white
The same site with Iframe Embed: the form keeps its own font

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 settings of the block or the Elementor widget, 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.

A quiz or a survey is placed the way a form is, with the same choices. Add the Doxtly Quiz or Survey block, or the Doxtly Quiz or Survey widget in Elementor, and choose it under Quiz or survey. Its other settings are a form’s, with the same names and defaults: Embed Type, Language, Width, Minimum Height, Isolate from the site’s styles, Doxtly theme and Transparent background. 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. Anywhere else shortcodes run, use a shortcode of its own, with the same attributes as [doxtly_form]:

[doxtly_quiz id="YOUR-QUIZ-TOKEN"]
[doxtly_survey id="YOUR-SURVEY-TOKEN" type="iframe"]
The Client feedback page of Northbridge Advisory's WordPress site with a client satisfaction survey placed with the doxtly_survey shortcode

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 shortcode 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 tools find active quizzes and surveys too, labelled Doxtly quiz and Doxtly survey.

An interactive document opens on its own page and can’t be embedded, in WordPress or anywhere else. To offer one on your site, link to it: add a link or a button and type the document’s name.