Have you ever wondered if you could allow users to select an image in your WordPress form instead of just text? With WPForms, you can easily add an image next to radio buttons in WordPress forms, so users can quickly select the right option they want.
In this tutorial, we’ll show you how to add an image next to radio buttons in WordPress forms.
If you’d prefer written instructions, continue reading below.
How to Add an Image Next to Radio Buttons in WordPress Forms
WPForms makes it super simple to add images or icons to your Multiple Choice radio buttons or your Checkboxes fields. Here are the steps you’ll need to follow:
In This Article
Step 1: Create a Simple WordPress Form
Next, you’ll need to create a new form. There are tons of templates to choose from, and you can add radio buttons with images to any of them.
For our example, we’ll use the Simple Contact Form template.
For help with this step, see our tutorial on how to create a simple contact form as an example to get started.
Step 2: Customize Your WordPress Form
The Simple Contact Form template comes with the following default form fields:
- Comment or Message
In our example, we’ll add a Multiple Choice form field to our simple contact form and change the label and choices to ask why the user is contacting us.
You can add additional fields to your form by dragging them from the left hand panel to the right hand panel.
Then, click on the field to make any changes. You can also click on a form field and drag it to rearrange the order of the fields in your contact form.
You can add images next to the Multiple Choice and Multiple Items form fields, which are radio buttons, as well as the Checkboxes and Checkbox Items form fields.
The difference between a radio button and a checkbox is that radio buttons only allow site visitors to select one option, whereas site visitors can choose more than one option from a list of checkboxes.
Now it’s time to add the images next to each radio button.
Step 3: Add Images to Radio Buttons
To add an image to your form’s radio buttons, toggle on the Use image choices setting in the Field Options panel.
When you click that box, you’ll see an Upload Image button appear for each radio button on your form.
There will also be a placeholder box in the preview panel where each image will display once uploaded.
To add an image, click on the Upload Image button. This will open your WordPress Media Library so you can upload a new image to WordPress or choose from your existing ones.
Note: Images will not be cropped or resized when you add them to your form. For best results, we recommend making all image choices the same size and 250×250 pixels or smaller.
Add Icon Choices to Radio Buttons
Depending on your form, it might make more sense to use icon choices than image choices. You can easily turn on this option the same way you did the image choices by selecting Use icon choices in the Field Options panel.
For more details, see our guide on using icon choices in WPForms.
Step 4: Customize Your Image Choices
WPForms makes customizing your image choices super simple thanks to the built-in customization options.
First, choose your preferred Image Choice Style.
Modern displays selected images in a shadowed box and adds a green checkmark to the center. Classic displays selected images with a thick, grey border. The None option will not add any special styling; instead you’ll see traditional radio buttons next to each image for site visitors to choose from.
Then you can view more options by clicking on the Advanced tab.
Importantly, make sure to select your preferred Choice Layout. You can pick from 1, 2, or 3 columns. You also have the option to choose Inline, which places as many options as possible in each row before adding another. Inline is the default Choice Layout for all WordPress forms displaying image choices.
You can also select the Randomize Choices option if you want to randomize the order of the image choices every time a new user visits your website.
Step 5: Enable Survey Reporting
If you want to see how many people choose each image choice you offer, you can enable survey reporting for your forms by installing and activating the Surveys and Polls addon.
To do this, go to WPForms » Addons and find the one labeled Surveys and Polls Addon.
Click Install Addon and then Activate.
WPForms lets you collect survey results for the following form fields:
- Single Line Text
- Paragraph Text
- Multiple Choice
- Likert Scale
- Net Promoter Score (NPS)
To enable survey reporting for all compatible fields in a form, go to Settings » Surveys and Polls in the form builder and select the Enable Survey Reporting option.
If you only want to collect data for a particular field, open its Field Options panel and click on the Advanced tab. Then toggle on Enable Survey Reporting.
Once people start filling out your form, complete with images next to the radio buttons, you’ll be able to generate survey reports in the WordPress dashboard to see the results.
To generate a survey report, go to WPForms » All Forms and hover over your form to display the options. Then, click on Survey Results.
Once you click that, you’ll see your form’s results:
Next, Make More Money Online
And there you have it! You now know how to add an image next to radio buttons in WordPress forms.
So, what are you waiting for? Get started with the most powerful WordPress forms plugin today.