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

How to Build a Product Configurator in Gravity Forms with a Live Image Preview

GravityExtra
How to Build a Product Configurator in Gravity Forms with a Live Image Preview

A visitor who can see what they are about to order orders with more confidence. That is the idea behind every product configurator: choose a colour, pick a logo, and the picture follows. Most configurators are built into a shop theme or a separate app. If your orders already come through Gravity Forms, there is a simpler way: keep your form, and let the choices in it swap stacked images on a live preview. In this tutorial we build a custom T-shirt form and a sofa form with the Gravity Forms Image Configurator add-on, and look at what ends up in the entry and in your notification.

A Design your T-shirt form with choices for shirt colour, logo, extras and a name on the left and, on the right, a live preview of a red T-shirt with a yellow star, a white collar trim and the name ANNA
The preview sits beside the form and changes the moment a choice changes.

How a Layered Preview Works

A layered preview is a stack of transparent pictures on top of each other. At the bottom is the base image, for example a coat hanger on a pale wall. On top of it sits a picture that only contains the shirt, in one colour. On top of that, a picture that only contains a logo, and above that a picture with a collar trim. To change the colour you swap one picture; the rest of the stack stays. A form is a perfect remote control for a stack like this, because every choice in the form already is a decision about one layer.

The add-on adds a field that holds the stack. Each layer is connected to a choice field of your form. For every choice you pick the picture to show. A layer can also be always on, which is handy for shine and shadows.

Step 1: Prepare the Pictures

Export your pictures as PNG files with a transparent background. If you can, export every layer at the same size as the base image, with the artwork in the right place. Then you never have to position anything. A small logo can stay small; you will place it with an offset in percent. Upload everything to the Media Library.

You do not need photographs. Flat illustrations, product renders and simple shapes all work, and the sample forms in this article use simple drawn shapes. If you have photographs, shoot them from the same position with the same light, one variant per photo, and cut out the part that changes.

Step 2: Build the Form

Create the questions as ordinary Gravity Forms fields. For the T-shirt that is a radio field for the shirt colour, a radio field for the logo with a None choice, a checkbox field for extras and a text field for the name. Conditional logic works as usual: you can show the extras only after a logo is chosen, and the name field only when the visitor wants a name.

Then add the field Image Configurator (preview) from the Advanced Fields group and select it. The panel in the General tab has three parts.

Step 3: Set Up the Stack

  1. Choose the base image.
  2. Add a layer for the shirt, drive it by the colour field and pick a picture for each colour. Choose the white shirt as the image when nothing is chosen, so the preview never starts empty.
  3. Add a layer for the logo, drive it by the logo field, pick the pictures, and place it with an x and y offset. Give it a higher z-index than the shirt so it sits on top.
  4. Add a layer for the extras. Because it is driven by a checkbox field, every checked extra is drawn.
  5. Add one layer without a field for a soft shine, set its opacity to 25 percent and give it a z-index between the shirt and the logo.

The panel shows thumbnails for every picture, so you can check the setup at a glance. Offsets and the size of a layer are relative to the base image, which means the preview is exact at any screen size.

Step 4: Write on the Picture

Personalisation sells. A text overlay writes the value of a text field onto the picture. Choose the field, one of four bundled fonts, a colour, a size as a percentage of the picture width, and a position. The text is anchored by the edge of its letters, so a centred name is really centred, whatever the font. Set a character limit so a long name cannot run over the shirt.

The fonts are bundled with the add-on under the SIL Open Font License, so the text is drawn without loading anything from outside, in the preview and in the saved picture.

The Preview on Your Site

When the page opens, the preview requests the base and every layer picture at once. After that a change is instant: the matching layers are switched on and off, and the text is redrawn while the visitor types. On a desktop the preview sits beside the form and stays in view while the visitor scrolls. On a phone it sits above the form.

This matters most on multi-page forms. If the colour is on page one, the name on page two and the extras on page three, the preview stays visible on all of them, and it follows the answers from every page. The field itself can sit on the last page.

The last page of a three step Design your T-shirt form with a Previous button and a Send my design button, and a preview that already shows the colour and the name chosen on earlier pages together with the logo and the sleeve stripes
On a multi-page form the preview stays in view on every page and follows fields from all of them.

Conditional logic fits in naturally. You may want the extras to appear only after a logo is chosen, or the name field only when the visitor says yes to personalisation. When a field is hidden, the preview forgets it: the layer falls back to its default picture and the text disappears. The saved picture follows the same rule, so what the customer saw is what you receive.

Prices Stay Where They Are

A configurator that changes prices behind your back is a risk. This one never does. It reads the same choices as your price fields, but the price stays with the Gravity Forms product and option fields and your total keeps working exactly as before. In the sofa form the fabric is a product field with three prices and the legs are an option field. The preview swaps the fabric and the legs, and the total shows the same amount the order will carry.

A Build your sofa form with fabric and legs choices, a total of 990 dollars and a live preview of a forest green sofa with black legs in a room
Prices stay in Gravity Forms product and option fields; the preview only shows the result.

What You Get in the Entry

When the visitor sends the form, the add-on does not take a screenshot of the browser. It reads the answers from the submission and draws the picture again on your server with PHP GD: the base image, the active layers in z-order, and the text. The result is a PNG saved in the Gravity Forms upload folder of the form, with a name like imgconf-26-6-k3x9w2ab.png.

Because the server composes it from the answers, nobody can send a different picture than the one the choices describe. Fields that conditional logic has hidden are ignored, just as in the preview.

In the entry you see the picture with a link to the full size. In the entry list there is a small thumbnail. When you delete an entry the picture is deleted with it, unless you choose to keep the files.

Put the Picture in Your Notification

Your team and your customer should see the same picture. In the notification message, all_fields already shows a link and the picture. For more control, use the merge tag of the field with a modifier.

<p>New design from {Your name:7}</p>
{all_fields}
<p>Link: {Your design:6}</p>
<p>{Your design:6:img}</p>
<p>{Your design:6:link}</p>

The plain merge tag gives the address, the img modifier gives a picture and the link modifier gives a link with the text View the composed image. Replace the label and the id with those of your field.

Tips for Better Configurators

  • Keep every layer the same size as the base when you can, and use offsets only for small parts like logos.
  • Give each layer a default image, so the preview is complete before the first click.
  • Use opacity for shine, shadows and watermarks instead of baking them into every layer.
  • Name your choices the way the customer reads them and avoid renaming them later: the pictures are connected to the choice values.
  • Test on a real phone. The preview sits above the form there, so keep the base image reasonably compact.
  • Use a character limit on text overlays that matches the space on the product.

What About Hosting?

The picture is made with PHP GD, which almost every host provides. To write text on the saved picture GD also needs FreeType. If your host does not have it, the preview still shows the text, the picture is saved without it, and the add-on settings page tells you. Ask your host to enable FreeType for GD and the text appears on new pictures.

Frequently Asked Questions

Do I need a developer?

No. Everything is set in the form editor with the Media Library. There is no code to write.

Does it work with AJAX forms and multi-page forms?

Yes. The preview starts again after an AJAX answer and keeps working on every page.

Does it work with Choice Cards or image choices?

Yes. They are radio buttons and checkboxes, so they can drive layers like any other choice field.

Does it send my pictures to another service?

No. Pictures and fonts stay on your site and the final picture is composed by your server.

A good configurator shows the customer what they are buying and shows you what to make. With the choices in your form driving a stack of pictures, you get both without leaving Gravity Forms.

Build it, see it, save it

A live preview made of stacked images, a text overlay and a composed picture saved with every entry.

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