ReusableForms v2.0 beta

Tailwind contact form template

A Contact form template using Tailwind CSS
This is a contact form that is designed using Tailwind CSS. Tailwind CSS is quite powerful that it gives you a lot of control over how your web pages look. Creating a contact form using Tailwind CSS is quite simple although you may not want to repeat creating from scratch every time you need a contact form. Here is a template for your rescue. You can copy and paste this template and customize for your needs.

Code


        <div class="p-4">
  <h2 class="text-2xl text-gray-500 font-semibold mb-2">Contact Us</h2>
  <div class="text-sm text-gray-600 mb-6">Do you have some feedback for us? An issue that bothering you? We are all ears! <br/>
  Please post your message below. We are constantly looking for ways to improve.</div>
<form id="contact_form">
  
  <div class="flex mb-5">
  <div class="w-1/2 mr-2">
  <label for="first_name_field" class="block text-sm text-gray-500">First Name:</label>
  <input class="rounded border-gray-400 w-full" type="text" name="first_name" id="first_name_field" />
  </div>
  <div class="w-1/2">
  <label for="last_name_field" class="block text-sm text-gray-500">Last Name:</label>
  <input class="rounded border-gray-400 w-full" type="text" name="last_name" id="last_name_field" />
  </div>
  </div>
<div class="flex mb-5">
  <div class="w-1/2 mr-2">
  <label for="email_field" class="block text-sm text-gray-500">Email:</label>
  <input class="rounded border-gray-400 w-full" type="email" name="email" id="email_field" />
  </div>
  <div class="w-1/2">
  <label for="phone_field" class="block text-sm text-gray-500">Phone:</label>
  <input class="rounded border-gray-400 w-full" type="tel" name="phone" id="phone_field" />
  </div>
  </div>
  
  <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>
  <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.