A step-by-step guide to connect custom HTML forms with Surface Labs for partial response tracking, workflows, lead scoring, and enrichment
SurfaceExternalForm
script to your sitesiteId
attribute must be added to the SurfaceExternalForm
script.
<head>
or at the end of the <body>
tag</body>
tag and replace SITE_ID
with the site ID.index.html
file.<form>
tag<Your_Form_ID>
with the ID of the external form created in Surface Labs.
data-id
attribute:
<Component_Question_ID>
with the question ID obtained while adding components to the external form.
surface-next-button
class to all next buttons.
surface-submit-button
class to the submit button.
surface-submit-button
class.surface-next-button
class.defer
attribute if added to the <head>
tag.