ReusableForms v2.0 beta

Tailwind CSS contact form

A simple, beautiful contact form template using Tailwind CSS
This is a contact form built using Tailwind CSS. Designing web pages using Tailwind CSS is fun because the utility classes provides maximum flexibility and power to design the way you want. The contact form is simple, with just 3 fields. The code can be used for any website that requires a simple form for the contact page. This is especially useful if you are building your website using Tailwind CSS. You can just copy the form code and customize as required.

Code


        <div class="p-4">
  <h2 class="text-2xl text-gray-500 font-semibold mb-2">Contact Us</h2>
<form id="contact_form">
  <div class="mb-4">
    <label for="message_field" class="block text-sm text-gray-500">Message:</label>
    <textarea class="w-full rounded border-gray-400" name="message" id="message_field" rows="6"></textarea>
  </div>
  <div class="flex mb-5">
  <div class="w-1/2 mr-2">
  <label for="name_field" class="block text-sm text-gray-500">Your Name:</label>
  <input class="rounded border-gray-400 w-full" type="text" name="name" id="name_field" />
  </div>
  <div class="w-1/2">
  <label for="email_field" class="block text-sm text-gray-500">Email Address:</label>
  <input class="rounded border-gray-400 w-full" type="email" name="email" id="email_field" />
  </div>
  </div>
  <button type="submit" class="bg-blue-600 py-2 px-4 rounded border-gray-400 shadow-sm text-gray-200 hover:text-white hover:bg-blue-800" >Send</button>
</form>
</div>
      

Integrating the Code with Your Web Page

To seamlessly integrate the form code from ReusableForms.com into your web page, follow these simple steps:

  • The form code is plain HTML. Click the copy button located above the code and paste it into your web page's source code.
  • If the form uses a CSS framework like Bootstrap or TailwindCSS, ensure that your web page or website project has the necessary libraries linked. Consult the respective library documentation for guidance.

Setting up Back-end Processing and Record Keeping

The form code provided above is for the client side only. To fully benefit from the form's features, you'll need a back-end form processor. Ratufa is one such service, and integrating with it is straightforward. Watch the video demo for a step-by-step example.

To receive email notifications upon form submissions, store submission records, and search through them later, you'll need a back-end processor. Here's how to set one up:

Using Ratufa Backend

  1. Go to Ratufa.io.
  2. Click the "Connect your form" button.
  3. Copy the provided code and paste it at the bottom of the HTML form code above
  4. You can test the form within ReusableForms before copying it to your website. Ratufa.io will show submissions on the right side.
  5. Copy the combined code to your web page.
  6. Ratufa will store your form submissions, and you can configure email notifications. You can search and download records whenever needed.