HTML Configuration
Basic Field Structure
Each form field is represented with an element that has a unique name attribute:
<span name="question_1">___________</span>
How does it work?
- The SDK detects HTML elements with a
nameattribute - It searches for questions in the JSON that match that
name - It replaces the element content with the information the user enters
Signature Placement in Complete HTML
In the Complete HTML file (not in Mask), a <div> is placed where the signature will go:
<div id="buyer" class="sign-margin"></div>
info
- The
idattribute must match thetypevalue insignatureProfile. - If the signature goes in multiple places, you can use the
nameattribute instead ofid.
Basic Complete Example
<div class="form-container">
<h1>Purchase Form</h1>
<!-- Name field -->
<p>Buyer Name: <span name="buyer_name">___________</span></p>
<!-- Email field -->
<p>Email Address: <span name="buyer_email">___________</span></p>
<!-- Amount field -->
<p>Total Value: <span name="total_amount">___________</span></p>
</div>