This tutorial will teach you how to customize the the focus color and drop shadow in a Bootstrap form field. By default, a Bootstrap form field is blue with a drop shadow and looks like this when it is in focus:
Overall, this is a pretty clean modern look. However, it can look out of place if your site uses a different color palette or aesthetic vibe. For example, suppose you're using a green submit button via
Suddenly, the blue looks out of place. Moreover, the drop shadow on the input is not really consistent with the flat ...
Bootstrap is the most popular CSS framework on the web. It makes it incredibly easy to create beautiful, responsive designs that just work. However, it’s not always possible to use Bootstrap for your entire website. Often the website’s main CSS is outside of your control. You just need to use a portion of Bootstrap CSS. For example, at FormDen, we want all of our users to be able to use Bootstrap’s excellent form CSS even if they aren’t using Bootstrap on their website.
If you just add Bootstrap CSS to your webpage it will conflict with ...
Adding animation to an HTML form not only makes it looks slick but can help communicate to users when they've made a mistake. This tutorial will teach you how to create a Bootstrap Form and add animations to it.
- We'll add a shake when the form is submitted with errors.
- We'll fade out the form after it is successfully submitted.
- Then, we'll fade in a "thank you" message.
Customize Demo Online
To create our animated form, we'll need the following:
- jQuery 1.9+ (cdn)
This tutorial will teach you how to add a date picker to your form using open source tools. A date picker is an interactive dropdown that makes it easy to choose the date from a calendar instead of typing it manually. It's a great way to avoid user errors because you can see the corresponding day of the week for each date. Plus it gives your form a little extra interactive shine!
Customize Demo Online
We'll be using the Bootstrap-Datepicker plugin to handle all the dirty work. There are a number of ...
Update! FormDen can now automatically validate your form fields fields for you. Learn how!
Show warnings when fields aren't entered correctly
People make mistakes when they fill out forms. By validating form responses before accepting them, we can alert users to their errors before they submit the form. In this way, client side form validation can vastly improve the user experience. This article will explain some basics about form validation and then illustrate how to validate form fields using jQuery.
There are two types of validation: client side validation and server side validation ...
It's easy to create a web form using HTML. However, after the user submits the form, you need to process the data that is sent to your server. This requires the use of a server-side language like PHP.
This article will explain: what form processing involves, why using a simple PHP script is problematic, and an easier way to process you form.
Suppose you create a simple contact form like this:
When someone fills out this form, you'll want to email the message to your inbox. Processing the form must be done by your server and is actually ...
Long forms are intimidating. An easy way to increase
<form> conversions is by using conditional fields. Conditional fields are hidden by default and appear when they become relevant. They are a great way to make forms shorter and more personalized. For example, suppose you request customer feedback. Here is a demo with conditional fields, try it out:
Icons can be a great addition to your HTML form. Not only will they make your form look great, they'll help avoid user mistakes. Humans can recognize pictures (like an envelope) much more quickly than they can read words (like "Email").
To add icons to your form, you need to understand how to do 2 things:
- Append or prepend addons to your form fields
- Add icons to the addons using icon fonts
Form Field Addons
A typical Bootstrap form field looks like this:
<label class="control-label" for="email">
<input class="form-control" id="email ...