Would you like to add image options to your forms? WPForms makes it easy to add images to your Multiple Choice, Checkboxes, Multiple Items, and Checkbox Items fields so that your users can see the option or item you’ve listed.
In this tutorial, we’ll show you how to add image choices to existing or new fields in WPForms.
Setting Up Image Choices
Before getting started, you’ll first need to make sure WPForms is installed and activated on your WordPress site and that you’ve verified your license. Then you can create a new form or edit an existing one to access the form builder.
Once the form builder is open, you’ll be able to add image choices to any of the following field types:
- Multiple Choice
- Multiple Items
- Checkbox Items
Additionally, you can add images to both new and existing fields of these field types.
For our example, we want to show images for item options in an order form. To do this, we’ll first add a Multiple Items field to our form.
Now that we’ve added our field, the next step is to change the field label and add text for available options. Since we’re using a Multiple Items field, we also need to add prices for each item.
Once this basic setup is ready to go, we’ll select the Use image choices option.
As soon as this option is enabled, an Upload Image button will be added to each option. Also, a placeholder image will be displayed for each option in the preview area.
Note: The placeholder images are meant to guide the form building process and only display in the preview area. These placeholder images will not be shown when the form is embedded on your site.
To add an image to an option, go ahead and click the Upload Image button.
This will open the WordPress Media Library. From here, you can select a file that has already been added to your site or upload a new image. Once you’ve chosen the image you’d like to use, click the Use Image button.
For this example, we’ve already edited all images to be 150 by 150 pixels in size. This will help our image options to look more uniform and professional.
Note: Images will not be cropped or resized when added to your form. For best results, we recommend making all image choices the same size and 250 by 250 pixels or smaller.
For details on basic image editing options built into the WordPress Media Library, including scaling and cropping, please see WPBeginner’s tutorial.
Here’s how our image choices will appear to our users:
Customizing Image Options
WPForms also includes several built-in options for customizing your image choices. To view these options, open the Advanced tab within the Field Options.
In addition to any other customization options available for the field you’re using, two options are added when the Use image choices option is selected: Image Choice Style and Choice Layout.
Image Choice Style
There are three options available for image choice styling: Modern, Classic, and None.
We’ll go over each of these options below:
The Modern option will display any selected options within a shadowed box, and also add a green and white checkmark to the center of the selected option.
The Classic option will simply add a thick, dark grey border around any selected options.
If you’d prefer to not add any special styling, select the None option. This option will display regular checkboxes or radio buttons next to the text for each option.
Choice LayoutChoice Layout options include One Column, Two Columns, Three Columns, and Inline.
By default, the Inline option will be selected when the Add image choices option is enabled. This will automatically place as many choices as possible within each row.
Note: In most cases, we recommend keeping the default Inline choice layout for image choice fields. This will allow the layout to automatically adapt to various screen sizes.
That’s it! You can now add images to any Multiple Choice, Checkboxes, Multiple Items, and Checkbox Items fields in your forms. If you used a Multiple Items field and plan to accept payments, don’t forget to set up an integration with Stripe, PayPal, Authorize.Net, or Square.
Next, would you like to test out your forms before adding them to your site? Be sure to check out our pre-launch checklist for all of our tips and recommendations before launching a form.