💪
FormFlex
  • Introduction
  • Getting Started
  • HOW-TO GUIDES
    • FormFlex with Next.js
Powered by GitBook
On this page

Getting Started

Simple installation

PreviousIntroductionNextFormFlex with Next.js

Last updated 1 year ago

Step 1: Generate form token

Click to generate your form token. It will arrive in your email.

Step 2: Set up the HTML form

On your website, create a form. Connect it to the FormFlex API by using the "" attribute. Include the form token you generated earlier as a hidden field as shown below:

<form action="https://api.formflex.dev/email/send-email" method="POST">

    <input type="hidden" name="formToken" value="GENERATED_FORM_TOKEN">
    <input type="text" name="firstName" required>
    <input type="text" name="lastName" required>
    <input type="email" name="email" required>
    <textarea name="message" required></textarea>
    <button type="submit">Submit Form</button>

</form>

Use the nameformToken for the hidden input type to ensure form submission works.

Step 3: Done

Following these steps, you can collect user input on your website, securely transmit it to the FormFlex API, and have it processed and delivered as an email to your designated recipient.

here