First to all you need to create your site and deploy to netlify.
- Click Deploy to netlify button
- Install netlify-cli. Netlify docs https://www.netlify.com/docs/cli/
- Run
netlify addons:create vgs
from your site's directory. - Run
netlify addons:auth vgs
, to authenticate and give addon access to your VGS account. - Then, follow interactive guide.
Example of form
<form name="contact" method="post" netlify-honeypot="b" autocomplete="off" netlify secure>
<p>
<label for="name">Basic Field</label>
<input type="text" name="name" id="name" />
</p>
<p>
<label for="ssn">Secure Field</label>
<input type="text" name="secure" data-secure-field />
</p>
<p>
<button type="submit" id="submit">Send</button>
</p>
</form>
name
&netlify
form attributes are required by (Netlify Forms)[https://www.netlify.com/docs/form-handling/]secure
attribute enables (VGS Collect)[https://www.verygoodsecurity.com/docs/features/vgs-collect] to secure your form.data-secure-field
input attribute tells which field should be secured