How can I confirm that a hidden form field is populating?

Updated:

This is an example of how to confirm that a specific form field is populating as you expect.

Follow these steps:

  1. Open the Forms page in Google Chrome from a company IP address. You may need to spoof a company IP.
  2. Open Chrome Web Tools (View > Developer > Developer Tools)
  3. Access the Elements tab
  4. Search for the name of the form field that you expect to be populating with Demandbase data. In this example the field we're checking is named "NumberOfEmployees" so that will be our search term. 
  5. Observe whether a value is assigned to the field. In this case we can observe that the field has populated with an integer value of 33500. 

Screen_Shot_2017-10-31_at_4.15.44_PM.png

 

If you find the value is unpopulated:

Confirm that the field is mapped correctly in your forms fieldMap in the Demandbase scripts file using the following steps.

  1. In Chrome Web Tools access the Console
  2. Type Demandbase.Config.forms.fieldMap and hit Enter/Return
  3. Click the small gray triangle to expand the JavaScript object containing the fieldmap
  4. Confirm that your form is using the form field names listed here.

Screen_Shot_2017-12-04_at_3.18.29_PM.png

 

Here is a list of all the attributes available via the Demandbase API. If you want to add additional attributes to your fieldmap you have questions about the above please contact support@demandbase.com.

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