Platform Guide

Netlify Deployment

Deploy Static Forms on Netlify

Netlify is a popular platform for deploying static websites. Static Forms works perfectly with Netlify since it requires no server-side code.

Setting Up Environment Variables

Add your Static Forms API key as an environment variable in Netlify:

1

Go to Site Settings

In your Netlify dashboard, navigate to Site settings → Environment variables.

2

Add Variable

Click "Add variable" and add:

  • Key: STATIC_FORMS_KEY
  • Value: Your Static Forms API key
3

Redeploy

Redeploy your site for the environment variable to take effect.

Using Environment Variables

Access the API key in your build process or client-side code:

JavaScript

Form Implementation

Create your form as you normally would:

HTML

Netlify Forms vs Static Forms

You can use Static Forms instead of or alongside Netlify Forms:

Netlify Forms

  • Built into Netlify
  • Limited customization
  • Requires Netlify-specific attributes

Static Forms

  • Works on any platform
  • Full customization
  • No platform lock-in