Skip to content

Hosted forms

Every form you build in Marketing › Forms can reach visitors in three ways:

Way URL / code Best for
Hosted page https://<edge host>/f/<ws>/<formId> Sharing a link (email, social, QR code) without a website
Embed A <div> plus the /forms.js script on any web page Showing the form inside your own site
Landing page widget The Form widget of the page builder amabledata landing pages

You copy the link and the embed code from the form’s Embed tab; building and configuring the form is documented in Form builder and Embedding and hosting. This page covers what happens on the visitor’s side.

  • The form must be Active. Inactive, archived or deleted forms answer This form is not available.
  • The hosted page additionally requires Public hosted page to be on in the form settings. Embeds keep working when it is off.
  • If Allowed websites is filled, submissions are accepted only from pages on those domains (and their subdomains). The form’s own hosted page is always allowed.

The hosted page is a minimal, mobile-friendly page with the form centered in a white card. Its browser title is the form name followed by the workspace name. It is marked noindex, nofollow, so search engines do not list it, and it loads no third-party resources except the Cloudflare Turnstile check when the form uses it.

The page language follows the form’s Language setting: a fixed language, or Visitor’s browser to pick English or Italian from the visitor’s browser preferences.

The embed code looks like this:

<div data-amable-form="FORM_ID" data-amable-tenant="WORKSPACE_SLUG"></div>
<script async src="https://EDGE_HOST/forms.js"></script>
  • The script finds every element with data-amable-form, including ones added to the page later (for example in a popup), and renders the form inside it.
  • The form is drawn inside an isolated shadow root: your site’s CSS does not change it, and its CSS does not leak into your site. Its look comes from the form’s style settings.
  • The script talks to the host it was loaded from, so the same snippet works on any website. Cross-origin requests are allowed from any site, and no cookie is involved.
  • The script is cached by browsers for one hour and revalidated in the background, so form changes do not require changing the snippet. Form content is fetched fresh (cached at most 30 seconds).
  1. The form loads with its fields. Multi-step forms show Step N of M with Next and Back buttons; the last step shows the submit button (default Submit, or your custom label).
  2. Fields are checked in the browser and again on the server. Invalid fields are highlighted with messages such as This field is required. or Enter a valid email address., and the form shows Please check the highlighted fields.
  3. When Turnstile is enabled for the form (and configured on the installation), the anti-bot check must pass.
  4. While sending, the button reads Sending….
  5. On success, the visitor sees your Thank-you message (default Thank you! Your submission has been received.) or is redirected to your Redirect URL, depending on After submit.

Besides the field values, each submission records, when available:

  • the tracking parameters of the page URL: utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, fbclid, msclkid, ref;
  • the page URL, the referrer, and the first landing URL and first referrer of the visit (remembered for the browser tab session);
  • the web analytics visitor ID (amb_vid cookie), which links the submission to the visitor’s journey in Visitors;
  • the visitor’s country, from Cloudflare.

Submission values are encrypted before they are stored and are then processed in the background (contact creation, connections, automations). See Submissions.

Protection Behaviour
Honeypot A hidden field that people never fill. When a bot fills it, the visitor gets a normal success answer but nothing is stored.
Rate limit At most 30 submissions per network address per workspace every 10 minutes.
Turnstile Optional per form; requires the installation’s Turnstile keys.
Allowed websites Rejects submissions coming from other websites.
Size limit 64 KB per submission.
  1. Open the form in Marketing › Forms and go to the Embed tab.
  2. Under Hosted page, click Open to check it, then copy the URL.
  3. Share the URL. If the tab says The hosted page is disabled in the settings., turn on Public hosted page first.
  1. In the Embed tab, copy the Embed code.
  2. Paste it in your page’s HTML where the form should appear.
  3. If you set Allowed websites, make sure your site’s domain is in the list.
  4. Load the page and send a test submission.

You can also post your own HTML form to the submit URL. Field names must be the field keys of the form; repeated names (checkboxes) become lists.

<form method="post" action="https://EDGE_HOST/f/WORKSPACE_SLUG/FORM_ID">
<input name="email" type="email" required>
<input name="first_name">
<input name="company_website" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>

After posting, the visitor is redirected (HTTP 303) to your Redirect URL, or sees a simple page with the thank-you message. Errors show a simple page with the matching message. The names company_website, _hp (honeypot) and cf-turnstile-response (Turnstile) are reserved.

POST https://<edge host>/f/<ws>/<formId> accepts application/json (used by the widget) or application/x-www-form-urlencoded (plain HTML forms). JSON answers:

Status error Meaning
200 — Accepted: submission_id, success_mode, success_message, redirect_url
400 bad_request Invalid JSON
403 turnstile_failed The anti-bot check failed
403 domain_not_allowed The page is not in Allowed websites
404 not_found Unknown or inactive form
413 payload_too_large Over 64 KB
415 unsupported_media_type Neither JSON nor a urlencoded form
422 validation_failed Invalid fields; details lists each path and message
429 rate_limited Too many submissions from this network
502 gateway_error The form service is unavailable
Message When
This form is not available. Unknown, inactive form or hosted page disabled
The form could not be loaded. Temporary error
Please check the highlighted fields. Validation failed
The anti-spam check failed. Please try again. Turnstile failed
This form cannot be used on this website. Domain not allowed
Network error. Please check your connection and try again. The browser could not reach the server
Something went wrong. Please try again. Any other error
Message Cause
This field is required. Empty required field
Enter a valid email address. Invalid email
Enter a valid phone number. Invalid phone
Enter a number. Not a number
The value is too small. / The value is too large. Outside the number limits
The text is too long. Over the maximum length
Enter a valid date. Invalid date
Choose one of the options. Value not among the options
The value is not valid. Any other rule
Resource Cache
/forms.js 1 hour, revalidated in the background
/f/<ws>/<formId>/config 30 seconds
Hosted page 60 seconds
Submissions and error pages Never cached

Visitors need no account. Your team needs the forms permissions described in Forms overview to change what visitors see.

Symptom Cause Fix
This form is not available. on the hosted page Form inactive, or Public hosted page off. Activate the form and enable the hosted page.
This form cannot be used on this website. The page’s domain is not in Allowed websites. Add the domain (subdomains are included) or clear the list.
The embed shows nothing The script did not load (blocked by your site’s content security policy), or the div attributes are wrong. Allow the edge host in script-src and connect-src; copy the snippet again.
Visitors see an old version of the form The config cache (30 seconds) or unsaved changes. Save the form and wait a moment.
Submissions look successful but never appear A browser extension or autofill filled the hidden honeypot field. Test in a clean browser profile; check your custom HTML form does not fill company_website.
Submissions start failing after many tests from the same office The rate limit (30 per 10 minutes per network address and workspace; the API answers rate_limited). Wait 10 minutes.