1. Add the HTML Form
Ensure your HTML form includes thesurface-form-handler class. This class is essential for identifying the form as one that triggers the Surface Form popup. Example:
Add the
surface-form-handler class to any external form that you want to use to trigger the Surface Form popup.2. Surface Form Constructor
Add the following code to thepages/_document.tsx file:
data-question-id attribute to your Surface Tag script in the pages/_document.tsx file.
You must replace the
<question_id> within data-question-id attribute and REPLACE ME WITH FORM URL with the question ID from the Surface Form Builder and the form URL respectively.
