Test a Form Enrichment

  • Updated

Once you have set up a form enrichment, you can follow these steps to confirm that the integration is working as expected. 

Confirm that Demandbase is Recognizing the Page as a Forms Page

If the Demandbase Tag is deployed on the page containing your form, and the form has the correct HTML ID or Name for the user facing company and email fields, then you can check that Demandbase is recognizing the form by doing the following.

  1. Load the form page in Google Chrome
  2. Open the Javascript Console (Ctrl+Shift+J on Windows / ⌘+Shift+J on Mac)
  3. Type Demandbase.utils.isFormPage() and hit Enter
  4. Confirm that the value returns "true"

If isFormPage() returns "false", confirm that you have have the Demandbase tag deployed on the page and that the HTML ID or Name has been assigned to the user facing company and email fields. If you're still having issues contact us at support@demandbase.com

Confirm that the Domain API is Firing

The domain API should fire after the browser recognizes that an email has been entered in the Email field. To test this, do the following:

  1. Open the Javascript Console (Ctrl+Shift+J on Windows / ⌘+Shift+J on Mac)
  2. Select the 'Network' tab
  3. Click the 'Preserve log' checkbox
  4. Enter a company email address in the Email field
  5. Deselect the Email field by tabbing or selecting the next blank field 
  6. Confirm that an email.json network appears in the network activity

If you're not seeing the Domain API fire, double check that the email field contains the correct HTML ID or Name. If the Email ID/Name was assigned to a different field, the form would still be recognized by the Demandbase tag but the user-facing email field won't behave as expected. If you're still encountering issues contact us at support@demandbase.com.

Confirm that the Autocomplete API is Firing

The Autocomplete API should fire after when three or more characters have been entered into the Company field. 

  1. Begin typing a company name in the Company field
  2. Confirm that a company selector dropdown appears
  3. You will also see an autocomplete call in the network activity. The API will fire with each additional typed character so you may see several instances of autocomplete activity in the network tab.

If you're not seeing the Autocomplete API fire, double check that the company field contains the correct HTML ID or Name. If the Company ID/Name was assigned to a different field, the form would still be recognized by the Demandbase tag but the user-facing company field won't behave as expected. If you're still encountering issues contact us at support@demandbase.com.

Autocomplete vs Toggle Form Field

It is possible to disable the Autocomplete functionality for a Forms enrichment. This is uncommon, but if Autocomplete is disabled you cannot toggle form fields.

Was this article helpful?

0 out of 0 found this helpful