ReusableForms v2.0 beta

Bootstrap contact form with file upload

A simple contact form using Bootstrap 4 and has file upload
A bootstrap contact form can be used to provide a simple way for a user to contact a website owner or administrator. It can also be used to gather feedback from users. There are a few reasons you might want to use a bootstrap contact form with file upload. One reason is if you want to allow users to upload files along with their contact information. This can be useful if you're running a business and you want potential customers to be able to send you their resumes or portfolios. Another reason to use a bootstrap contact form with file upload is if you want to give users the ability to attach files to their contact forms. This can be helpful if you're collecting feedback from users or if you need to allow users to upload supporting documentation.

Code


        <h1>Contact Us</h1>
<form id="myform" name="myform" method="post">
    <div class="form-group">
        <label for="email_addr">Email address</label>
        <input type="email" class="form-control" id="email_addr" name="email" placeholder="name@example.com">
    </div>
    <div class="form-group">
        <label for="name_input">Name</label>
        <input type="name" class="form-control" id="name_input" name="name" placeholder="Name">
    </div>
    <div class="form-group">
        <label for="message">Message</label>
        <textarea class="form-control" id="message" name="message" rows="3"></textarea>
    </div>
    <div class="form-group">
        <label for="photo_upload">Upload File</label>
        <input type="file" class="form-control-file" id="file_upload" name="file_upload">
    </div>
    <button type="submit" class="btn btn-primary">Submit</button>
</form>
      

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.