DEV Community

Cover image for static website forms
fabform3
fabform3

Posted on

static website forms

If you are using a static site generator SSG like Hugo or Jekyll, there maybe come a time that you may ask yourself, how do I handle forms.

Since static websites don't have a back-end
you can use the services of a forms back-end such as fabform.io that can handle your static website forms

Image description

Simple create a free account at fabform.io

Once you are in fabform, its just a case of creating a forms endpoint and adding the endpoint id to your html form's action method as shown here.

<form action="https://fabform.io/f/{form-id}" method="post">
 <label for="email">Your Email</label>
 <input name="email" type="email">
 <button type="submit">Submit</button> 
</form>
Enter fullscreen mode Exit fullscreen mode

And that's all there is to it.

You now have a fully working contact form working!

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay