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 where the form belongs.

Way Use it when Options
Editor button The form belongs in an article Form, embed type, language, width, minimum height
Module The form belongs in a template position, such as a sidebar The same, plus style isolation
Tag You write the tag by hand, in anything Joomla prepares as content The same, plus shadow_dom

Anyone who may create or edit articles in Joomla can use the button. A page can hold several forms, and the same form more than once.

  1. Open an article and put the cursor where the form belongs.

  2. In TinyMCE, Joomla’s standard editor, open CMS Content in the toolbar and choose Doxtly Form. In CodeMirror, or with no editor, the Doxtly Form button is below the text.

    The TinyMCE toolbar with CMS Content opened and Doxtly Form highlighted in its list
  3. On the Form tab, choose the form under Form and adjust the rest if you need to.

    The Doxtly Form dialog on its Form tab, with Client satisfaction survey chosen, and the fields Embed Type, Language, Width and Minimum Height
  4. Click Insert, and save the article.

The form goes into the text as a tag, holding only what differs from the defaults. The form does not run in the editor, so nobody can send a test submission by accident. To see it, open the published page.

An article in TinyMCE with a paragraph of text and a doxtly_form tag below it

The button works the same in front-end editing, when an author edits an article on the site itself.

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 your template’s content column limits it as well.

  1. Go to Content → Site Modules, click New and choose Doxtly Form.

    The Doxtly Form card among the module types, saying Shows a form, a quiz or a survey built in Doxtly in a template position
  2. Give the module a title. Content is Form: choose the form under Form. For a quiz or a survey, set Content to Quiz or survey and choose it under Quiz or survey; the other fields stay as they are for a form.

  3. Choose a Position of your template, and on the Menu Assignment tab the pages it appears on.

  4. Click Save & Close.

The Module tab of a Doxtly Form module with the fields Form, Embed Type, Language, Width, Minimum Height and Isolate from the template's styles

The module has the same settings as the dialog, with the same names and defaults; its isolation is called Isolate from the template’s styles, is on by default and does what shadow_dom does in the tag. Switching it off is explained under Styling. It shows only for Native Embed.

The About us page of the website with a newsletter form in a Stay in touch module in the right sidebar
A Doxtly Form module in the sidebar of the About us page

A narrow position suits a short form. A form with two fields side by side needs more room than most sidebars give.

A tag is a short piece of text in curly brackets that Joomla swaps for something else when it shows the page. It works in articles, and in anything else Joomla prepares as content, such as a Custom module with Prepare Content switched on.

{doxtly_form id="sAFZpCfzVDHA4ZGG7cg-mHG1Vz3Q6gSgRdoEtCpaLio"}

The Doxtly Form button writes it for you. To write it yourself, copy the form’s public token from the end of its link in the Share dialog in Doxtly, or copy the tag from the settings screen and replace your-form-id.

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 in the dialog 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 template’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.”

shadow_dom is not in the dialog. To use it in an article, add it to the tag by hand.

Smart Search leaves a tag out of its index, so it does not turn up in your search results.

The field in the dialog and the module depends on what the plugin knows about your forms.

Situation What you get
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
The Form field with the form's ID and a red notice saying Doxtly refused the access key, with an Open the settings link

Joomla 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. The list holds up to a thousand forms.

A module 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, and a warning explains why.

The Form field 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 field. Until you act, visitors see what Doxtly answers for that form, usually Form not found.

A tag in an article gets no such warning, because the editor shows it as text.

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 template’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 module, or in the dialog of the Doxtly Form button, 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. On the Quiz or survey tab of the Doxtly Form button, choose it and set the same options as for a form, and Insert writes its tag. In the module, set Content to Quiz or survey and choose it under Quiz or survey: Embed Type, Isolate from the template’s styles, Doxtly theme and Transparent background stay as for a form. 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. The dialog writes it with square brackets, so change them to curly ones for Joomla.

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 tab finds 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 Joomla or anywhere else. To offer one on your site, link to it: click Doxtly Form, open Link and type the document’s name.