Testing a Forms Integration

Updated:

Once you have followed the steps for provisioning Demandbase Forms, 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"

Screen_Shot_2018-03-28_at_2.31.06_PM.png

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 please 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

Screen_Shot_2018-03-29_at_6.55.53_AM.png

If you're not seeing the Domain API fire, double check that the email field contains the correct 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 please 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.

Screen_Shot_2018-03-28_at_2.27.39_PM.png

If you're not seeing the Autocomplete API fire, double check that the company field contains the correct 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 please contact us at support@demandbase.com.

Other considerations

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

 

 

Was this article helpful?
0 out of 0 found this helpful