Drag and Drop Form Builder using Bootstrap 4 and jQuery

The “formBuilder” is a rich form creation plugin/tool for jQuery. It is useful to create a drag and drop form builder tool using Bootstrap 4. The plugin comes with 11+ actions (autocomplete, button, checkbox group, date field, file upload, header, hidden input, number, paragraph, radio group, select, text field and textarea) and 27+ languages. It allows to create and edit form templates and save XML and JSON data.

Additionally, it contains another packege named “theRender” that render form templates created with formBuilder.

[intro_ad]

Plugin Overview and Preview

Plugin: formBuilder
Author: Kevin Chappell
Category: Text & Input
Published: January 20, 2024
File Type: zip archive (HTML, CSS & JavaScript )
Package Size: 116 KB
Dependencies: jQuery 3.0 or Latest version and Bootstrap 4.1.3
Last Modified:
MIT
13,378
[ad_after_overview]

How to Create Drag And Drop Form Builder Using Bootstrap 4

1. In first step, load the jQuery and Bootstrap 4 CSS into your web project.

<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

Basically, the Bootstrap CSS is optional. The formBuilder generates styles dynamically. However, Bootstrap necessary for some (buttons, notification, etc) styles.

2. After that, include formBuilder JavaScript files in your website/app.

      <!-- Form Builder JS -->
      <script src="js/vendor.min.js"></script>
      <script src="js/form-builder.min.js"></script>
      <script src="js/form-render.min.js"></script>

3. Create HTML div element in which form builder rendered dynamically.

<div class="build-wrap"></div>

4. In last, call the plugin in jQuery document ready function to active the formBuilder.

$(document).ready(function(){
	$('.build-wrap').formBuilder();
});
[ad_after_artical]
About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...