Account Engagement forms and form handlers

The hosted form, the form handler, how they differ, what each field validates and what a submission does to the prospect record.

A company’s web team already has an appointment-request form in production, with its own design and its own validation, and marketing wants whatever is typed into it to reach its marketing database. Does the form have to be rebuilt inside the tool, or can it stay where it is and be connected?

The hosted form and the form handler

Marketing Cloud Account Engagement (formerly Pardot), Help says, “offers a few ways to collect visitor information and create identified prospects”. The prospect — “cliente potencial” in Salesforce’s Spanish Help — is the record all of this feeds, and it belongs to the prospect model page.

Two of those ways are different objects, and Help separates them in one sentence: “Forms and form handlers are different”.

A hosted form is designed and managed inside Account Engagement, with the tool its own article calls the Form Builder and the parent article calls the Form Wizard; this page does not claim they are the same screen.

A form handler — “controlador de formulario” in Spanish Help, which is where this site’s Spanish gloss comes from — is, Help says, “an alternative to hosted forms that you create in Account Engagement”, used “to integrate your third-party or custom forms and track submission data”. It is not a form: it is the end that a form living outside posts to.

Both are available in every edition: “Available in: All Account Engagement Editions”. Creating either asks for the Account Engagement Administrator or Marketing role.

What each one can do

Help compares them in a table of seventeen features with two columns, FORM and FORM HANDLER, and marks only the column where the feature is available: where it is not, the cell is empty. Reading that empty cell as “not available” is this page’s reading, as is the split into three groups; the row labels are Help’s.

Marked for Features, with Help’s label
Both Prevents data duplication, Validates email addresses, Provides field-level change audits for prospects, Base automation rules on form completions, Sends autoresponder emails, Redirects to a success page
The form only Provides progressive profiling, Protects against bots, Provides form views and error data, Integrates with landing pages, Base automation rules on form views, Displays Thank You content after form submission, Supports Resubscribe
The form handler only Integrates with third-party forms, Maintains current lead flow, Integrates with Salesforce Web-to-Lead forms, Supports custom front-end editing

Besides that table, the form handler’s article gives four reasons to use one instead of a hosted form: “Completely control the look and feel of your forms”, “Post form submission data to more than one database”, “Integrate Account Engagement with your existing forms” and “Use a third-party form tool”. Four, counted in the rendered article rather than in an extract.

The two routes of a submission

The two routes by which a form submission reaches Account EngagementA submission's data reaches Account Engagement by two routes, and the difference is where the form lives. On the first, the hosted form is designed and managed inside Account Engagement, and Salesforce Help says it is published on an Account Engagement landing page or, if you do not want to use one, embedded in your site with an iframe, which is the element that nests one page inside another. On the second, the form lives outside: it is your own or a third-party tool's, and it is not replaced. In its code the post URL is changed to the form handler's, the form handler being the end that form posts to, and it is the form handler that carries the data into Account Engagement. Both routes end in the same place: Account Engagement receives the submission. This page does not say which prospect record that submission is attributed to, because that belongs to the prospect model page of this knowledge base.Hosted formLanding pageor iframeExternal formform handlerAccount Engagementreceives the submission

On the hosted form’s route, Help says, the form is placed “on your website using an iframe” — the element that nests one page inside another — when you do not want an Account Engagement landing page to host it, and that you “can also limit iframing to specific domains or restrict it completely”. The landing page belongs to the Account Engagement Landing Pages page; the form’s own styling belongs here.

The form handler’s route is assembled like this.

Of the form handler What Help says
The post URL Create the form handler, copy its URL, and in the external form’s code change the post URL to that one
The enctype attribute The attribute that declares how a submission’s data is encoded, this page’s gloss. It must be empty or application/x-www-form-urlencoded; Help warns that form handlers “don’t accept multipart/form-data”
Success Location Where the prospect is redirected after the submission
Error Location Where prospects go if an error occurs. When a required field is missing, the messaging arrives “appended as parameters to the error location URL”, and a server-side process or JavaScript is needed to read them and show the prospect an error
Data forwarding Enabled, “the same data post is transferred to the success location”: it is how the data reaches two systems
The POST parameters success_location and error_location override the stored destinations, for that request only, and only if they are “URL-encoded and valid URLs that match your root tracker domain or go.pardot.com”; otherwise the form handler redirects to the referring page. What a tracker domain is belongs to the tracking code and cookies page
The associated form If you delete a form handler, Help asks you to delete or update the form on your site: one still posting to a deleted form handler returns an error to the prospect
The Web-to-Lead integration That forwarding is what the integration with a Salesforce Web-to-Lead form rests on, posting the data “to both Salesforce and Account Engagement almost simultaneously”. It comes with a warning: “We don’t recommend using this method if you use completion actions to assign prospects. Duplicate records are created when both the completion action and Web-to-Lead form create prospects”. What a completion action is belongs to the automation rules page

The field: what it asks for and what it validates

A field’s options are edited form by form.

Field option What it does, per Help
Required “Indicates that the field is required for submission”
Error Message “The error message that appears when the field is empty or has an invalid value”; Help recommends including a detail that identifies the field
Data Format “Specifies in which format the prospect enters data”; it is where email validation is chosen
Always display even if previously completed For fields where the prospect may submit the same value more than once. Without it, “the field doesn’t show again after a prospect has completed it”
Do not prefill “Most fields are set to prefill by default, which automatically populates a form field that was collected previously from a prospect on the same device”, and this option turns that off. Help recommends prefilling the email field, which “helps to prevent incomplete form submissions”; prefill is not supported for TextArea fields
Maintain the initial value upon subsequent form submissions Retains the initial value when the prospect submits another form with a different value in that field. “This option doesn’t apply to the Email field”
On a form handler The field is mapped by its external field name, “the name attribute from your external form field’s input tag”, and it “is case-sensitive”. And required is declared twice: if a field is required on the form handler, Help asks you to make it required on the form too, because otherwise “the form submission fails when a prospect leaves the field blank”

Email validation is chosen form by form, in the email field’s Data Format. Help publishes two levels, and the second rejects addresses the first accepts.

Level, with Help’s label What it requires
Email with valid mail server “Valid email address syntax”, a “live domain name” and a “receiving email server listed in DNS records” — DNS being the Domain Name System, the directory that turns domain names into addresses
Email not from ISPs and free email providers The three requirements above plus an address “not from a known ISP (for example, Comcast or Charter)” and “not from a free email provider (for example, Gmail or Hotmail)” — ISP being an internet service provider

Two tabs decide when a field appears. On Dependent, the field shows when another field on the same form takes a given value; Help’s example is State dependent on Country. On Progressive, the field shows only “if the prospect already has data in the following field(s)”, which is what Help calls progressive profiling. Both belong to the hosted form: Help says conditional fields “aren’t available on form handlers because they don’t work on external content”.

What a submission does to the record

A form submission “takes place when a visitor or prospect completes a form and clicks submit”, Help says. A conversion is a specific type of submission: the one in which “an anonymous visitor provides an email address and converts into a prospect”. The two numbers are not independent, and Help warns readers of reports that “the total submissions number includes the conversions”. What an anonymous visitor is, and which record a submission is attributed to, belongs to the prospect model page, which publishes it with its own diagram.

What belongs here is the repeated submission. These five rows are the hosted form’s.

What happens on resubmission What Help says
The activity on the record Unless the form is in kiosk mode (see “The kiosk trap”) or set to always display, duplicate prospect activities are recorded “once every 30 minutes”. “Every submission is accepted, and completion actions fire for each submission”
Where each submission shows “All submissions appear in prospect audits, but only one submission every 30 minutes appears in the prospect’s activities”
Returning to the form “If you return to a form within 10 minutes of submitting it, it displays the thank you content or redirects to the thank you page”
The autoresponder It “isn’t sent each time when you submit the form repeatedly in a short time”: by default it is throttled “to prevent prospects from receiving duplicate emails”
Testing without faking the result Clear your browser cookies and use a different email address, because otherwise “the form submission is credited to the prospect created in your previous test”; and keep Show Filtered Activities on, because otherwise “your test activities could be hidden”

A completion action is added to the form, on the wizard’s completion-actions step, and to a form handler as well; the submission is what fires it. What it is, what it does and what a page action is belong to the automation rules page, which glosses both from a quote; how many points a submission adds to the prospect’s score is published by the scoring and grading page.

On the form handler that throttling has its own article, and its sentence is worth reading literally because it splits two things apart: “Although Account Engagement captures submitted data for each submission, visitor activities and autoresponder emails are throttled to prevent rapid submissions from spawning duplicate activities and emails”. The submitted data is captured every time; what is throttled are the visitor activities and the autoresponder emails. It is turned off form handler by form handler, with the checkbox Disable Visitor Activity throttling and send autoresponder emails after every submission. Help’s example — resubmitting to correct a name — is the motivation, not the mechanism. None of these sources publishes the interval of that throttling, and none says the hosted form has this checkbox: the thirty minutes in the table are the duplicate activities’.

“Typically”, Help says, “a prospect’s form submissions are related to a prospect record via a unique browser cookie”. But sometimes you do not want to cookie every visitor, and the reason Help gives is the concrete damage: it “can cause one prospect’s information to be related to another prospect’s cookie”. Its two examples are entering prospect data by hand from a signup sheet and having prospects fill out forms at a tradeshow booth.

Kiosk / Data Entry Mode is its answer: it lets a form be submitted several times “without causing visitor association changes”, because “it doesn’t cookie visitors”. It is enabled form by form, on the Advanced tab of the Look and Feel step. The cookie itself and its duration belong to the tracking code and cookies page. All this page says is that a form can be set not to cookie the visitor, and that this changes who what they write is attributed to.

On the form handler’s side Help publishes three more warnings, all three about identity.

The warning What Help says
The server-side post A form handler “can do browser-side posts (the usual posting method) or server-side posts”. For a server-side post, enable Kiosk/Data Entry Mode on the form handler “to prevent tracking your server as the prospect”. Such posts “record the form handler submission activity on the prospect’s record, but don’t have a tracking cookie”
A cookied prospect submitting new information “The prospect record associated with the cookie is updated”
A cookied prospect changing their email address “We create an additional prospect record”

The last two sit in the section scoped to accounts that allow several prospects with the same email address. How the cookie criterion and the email criterion combine is stated by none of this page’s sources, and identity between records that share an address belongs to the prospect model page.

Bots: honeypot, conditional CAPTCHA and reCAPTCHA

Online forms, Help says, “are easy targets for bots”. The hosted form carries two layers and accepts a third; the form handler carries none.

Layer What it does, per Help
The honeypot, which Help calls a negative CAPTCHA “An invisible field that your prospects can’t see. Bots do see this field, and they complete it. When the honeypot field has a value, the form submission is rejected.” All hosted forms have it
The conditional CAPTCHA A CAPTCHA is the test that tells a person from an automated program, this page’s gloss. Account Engagement “pings a database of IP addresses known for spam when a visitor views a marketing form or landing page”, and only visitors “coming from an IP known for spam see a CAPTCHA” — IP being internet protocol
reCAPTCHA Optional and for all prospects, on the Advanced tab of the Look and Feel step. Help warns that “its protection doesn’t eliminate all spam” and that it “appears by default when we detect an unusual number of form submissions within a certain time frame”
On a form handler None of the above. Help recommends implementing bot protection on the external form, because otherwise “you could be complicit in subscription bombing”, which it names and does not define. It gives the code of a honeypot field, a block positioned off screen with an input named pardot_extra_field, and says to “talk to your IT team to implement a CAPTCHA or IP blocking, or consider implementing a confirmed opt-in process”. It also advises setting the email address field to required

Example: a private bank’s appointment form

A private bank has an appointment-request form maintained by its web team, and marketing wants its submissions in Account Engagement without rebuilding it. The case is invented; the order is this page’s proposal and each step’s behaviour is Help’s.

  1. A form handler, not a hosted form, for one of Help’s four reasons: to integrate Account Engagement with a form that already exists. The comparison table adds the other half, marking Maintains current lead flow in that column only.
  2. Map every field by its external field name, respecting upper and lower case.
  3. Make email required on both sides. Help asks for it as a best practice and warns that a field required only on the form handler makes the submission fail.
  4. Set both destinations. If the form already posted to another system, forwarding to the Success Location is what lets it keep doing so.
  5. Add bot protection, which the form handler does not carry: the honeypot field, and whatever the IT team decides.
  6. Decide the activity throttling before opening it, which is what prevents the repeated autoresponder when somebody corrects their name and submits again.

What this does not promise: it does not say which record each submission goes to when several people share an address, which belongs to the prospect model page; and it gives no progressive profiling and no Thank You content, both marked in the form’s column only.

What to decide, and on what criterion

No source publishes a decision table: the split into rows is this page’s reading, and each row cites what Help does say.

Decision When yes, when no, and on what criterion
Hosted form Yes when you need something Help marks in its column only: progressive profiling, bot protection included, Thank You content, integration with landing pages or automation rules based on form views. No when the form already exists and another team maintains it. The criterion: whose front end is it?
form handler Yes for one of Help’s four reasons, and in particular to keep a form and its lead flow. No when there is no external form to keep, because you give up what is marked in the form’s column only. The criterion: is there a form that will not be touched?
Kiosk / Data Entry Mode Yes when several people will submit the form from the same browser, or when the post is server-side. No when the submission should be associated with the cookie of whoever makes it. The criterion: is the person submitting the owner of the cookie?
Turning activity throttling off Yes when every visitor activity and every autoresponder is needed. No while a resubmission is the same data corrected, which is Help’s example. The criterion: is a repeated submission new data or the same data again? The data is captured either way
A form inside an email No: Help recommends linking to the form rather than embedding it, because it “might not render correctly”, “might not capture data” and “might trigger an alert about submitting data to an external page”. The criterion: here Help offers no yes

Before production

  1. Hosted form or form handler chosen, and what its column does not mark accepted (see “What each one can do”).
  2. The email field required, and its validation level chosen (see “The field”).
  3. On a form handler, external names with their casing and required fields declared on both sides (see “The field”).
  4. Bot protection resolved on whichever side applies (see “Bots”).
  5. Kiosk / Data Entry Mode decided before the form opens (see “The kiosk trap”).
  6. Activity throttling decided form handler by form handler (see “What a submission does to the record”).
  7. Tested with cookies cleared, a different address and Show Filtered Activities on (see “What a submission does to the record”).

Official sources

Back to the knowledge base