🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 3, 2026

How to Add Icons Inside Gravity Forms Fields

GravityExtra
How to Add Icons Inside Gravity Forms Fields

Look at the sign-up and checkout forms you like using, and most of them have small icons inside the inputs: an envelope where the e-mail address goes, a lock in the password box, a pin in the address. They are a small detail, but they make a form quicker to scan, especially on a phone, where people look at the input before they read the label. Gravity Forms has no setting for them, so adding an icon to an input has usually meant custom CSS, an icon font from another site and a fair amount of trial and error.

This guide looks at when input icons help and when they get in the way, the usual ways people add them to Gravity Forms and the problems those cause, and how to add icons to every input, label and submit button with the Gravity Forms Field Icons add-on, including automatic icons for a whole form, right-to-left sites and validation errors.

Why icons inside inputs help

An icon is a second, faster label. People recognise an envelope or a phone in a fraction of a second, before they have read a word, so a form with icons is quicker to scan and easier to fill in without mistakes. Three situations show it most clearly.

Short forms on phones

On a phone, labels are often placed inside the inputs as placeholders to save space, and the placeholder disappears as soon as the visitor starts typing. An icon stays. Halfway through typing, the visitor can still see that this box is the phone number and the next one is the e-mail address.

Long forms with many similar boxes

Registration, booking and enquiry forms often have a dozen inputs that all look the same: name, e-mail, phone, company, street, city, ZIP code, country. Icons break that wall of identical boxes into groups the eye can follow, and the address in particular becomes much easier to read when each line has its own small icon.

Forms that should look like your brand

A form is often the last step before a sale or a sign-up. Icons in your brand colour, and perhaps your own brand icon in one field, make a plain form look designed, without changing the questions or the layout.

When icons get in the way

Icons are not always an improvement. A few rules keep them helpful:

  • Use them consistently. One icon in one field looks like an accident. Either give every input in a group an icon, or keep icons for the one field you want to stand out.
  • Pick obvious icons. An envelope for e-mail, a phone for phone, a lock for a password. A clever icon that people have to think about is worse than none.
  • Never replace the label. The icon supports the label; it does not do its job. Screen-reader users, and anyone who does not recognise the icon, still need the text.
  • Keep the text clear of the icon. If the typed text or the cursor runs under the icon, the form looks broken.

The usual workarounds, and what they cost

Background images with custom CSS

The most common trick is a CSS background image on each input plus some left padding. It works for one field on one theme, but every field needs its own rule, the padding has to be tuned by hand, the icon does not follow the text colour, and it breaks the moment the theme changes the input height or the site switches to right-to-left. It also has to be redone for every form.

Icon fonts from another site

Loading an icon font from an outside service gives you many icons, but it adds a request to another server on every page with a form, which slows the page and may need a mention in your privacy notice. Icon fonts are also read out as strange characters by some screen readers unless they are carefully hidden, and an icon font placed with CSS cannot be clicked through to the input.

Changing the form markup by hand

Some developers filter the field markup with their own code to add an icon next to each input. Done carefully, this is the right idea, but it means writing and maintaining code for each field type, knowing every quirk of the Name, Address, Time, Date and Password fields, and keeping it working across Gravity Forms updates and themes.

Adding icons with the Field Icons add-on

The Field Icons add-on does that last approach for you, for every supported field type, and adds settings to the form editor so no code is needed.

A club enquiry form with icons inside the inputs: a person in Full name, an envelope in E-mail and its confirmation, a phone in Phone, a globe at the end of Club website, a calendar in Preferred date, a list in Court surface, speech bubbles in the top corner of Message and an orange ticket at the end of Promo code with a star before its label, and a paper plane on the Send enquiry button
Automatic icons by field type on an Orbital form, with an own icon, colour and side on the promo code and an icon on the submit button.

Step 1: switch on automatic icons for the form

Open the form and go to Settings → Field Icons. Switch on Automatic icons by field type. Every supported field now has an icon: an envelope in E-mail, a phone in Phone, a globe in Website, a calendar in the date picker, a clock in Time, a lock in Password, a person in each part of Name and a different icon on each Address line. Single Line Text fields pick an icon from words in their label, so “Company” gets a building, “City” a pin and “Promo code” a ticket. On the same tab, choose the side, the colour and the size of the icons, whether the icons should turn the error colour on a field with an error, and an icon for the submit button.

Step 2: fine-tune single fields

In the form editor, select a field and open its Appearance tab. The Field icon block shows the icon the field has now and a live preview. Press Choose icon to pick another one from 324 bundled icons; the search box finds icons by name and by common words, so “mail”, “call”, “password” or “address” lead straight to the right icons. Or press Media Library image to use your own SVG or PNG, such as a brand icon. Change the side, the size or the colour for this field only, or tick No icon to keep it plain.

Step 3: labels and the submit button

Any field, including checkboxes and radio buttons that have no input icon, can have an icon before its label. In the form settings, “Show each field’s icon before its label too” does this for the whole form in one step. The submit button can get a paper plane, an arrow, a check mark, a lock, a cart and other icons, before or after its text, in the button’s own text colour.

The details that make it look right

The text always starts after the icon

The add-on adds room before the text for the icon and a gap, based on the icon size, so the typed text, the placeholder and the cursor never run under it. The icon is centred vertically in the input, sits in the top corner of a Paragraph Text box, and sits just before the arrow of a drop-down when you put it at the end.

It respects each field type

E-mail and Password get the icon on their confirmation input too. Time gets it in the hour box. Password keeps the icon away from the “show password” eye button, and a Phone field with the international format keeps it away from the country flag. A date picker keeps its icon at the start, clear of the Gravity Forms calendar button at the end.

Right-to-left sites are mirrored

Everything follows the text direction of the page. On an Arabic or Hebrew site, a “start” icon sits on the right and the text starts to its left, and arrows and the paper plane point in the reading direction.

Validation stays intact

Gravity Forms’ own error summary, error borders and messages stay exactly as they are. With the error colour switch on, the icon in a field with an error turns the same error colour, which helps the visitor find the field to fix.

A right-to-left form on a phone after a failed submit: the icons sit on the right of each input, the empty required fields have red borders and messages, and their icons have turned red
Right-to-left on a phone: the icons move to the other side, and fields with an error show the icon in the error colour.

Accessibility and performance

Every icon is marked as decorative, so screen readers skip it and keyboard users never land on it. The inputs themselves are not changed at all: they keep their id, name, classes, value and accessibility attributes, and their labels stay linked to them. That is also why validation, conditional logic, calculations, AJAX, multi-page forms and other add-ons keep working as before.

The icons are drawn as inline SVG from a file inside the add-on, so there is no icon font and no request to another site. A form that uses icons gets one small stylesheet and a tiny script; a form without icons gets nothing, and is printed exactly as Gravity Forms prints it. Nothing is stored in your entries and no data leaves your server.

Works with every Gravity Forms theme

Field Icons follows the input styles of your theme instead of replacing them, so the border, radius, background, focus ring and height still come from the Orbital theme, the Gravity Forms theme, a form that still uses legacy markup, or your own CSS. Forms embedded with the Gravity Forms block, a shortcode or a widget all get their icons on your pages.

A quick checklist

  • Switch on automatic icons for forms with many similar inputs, such as registration, booking and checkout forms.
  • Keep the icon colour calm and use a stronger colour only on the one field that matters most.
  • Use 16 to 20 pixel icons with the default input height; go bigger only with taller inputs.
  • Leave the error colour on, so a field with an error stands out.
  • Keep labels visible; the icons support them, they do not replace them.
  • Check the form on a phone and, if your site has a right-to-left language, in that language too.

Get started

Input icons are one of the quickest ways to make a Gravity Forms form easier to fill in and nicer to look at. With the Gravity Forms Field Icons add-on, it takes one switch for a whole form and a click per field for the details. The Field Icons setup guide walks through every setting and field type.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr