Use Images as Answer Options

Rating Question Using Images as Answer Options
  • Rating Question Using Images as Answer Options

While in most cases the Image Select question type will work nicely when asking respondents to select from a list of pictures, you may want to marry the functionality of another question type with the image answer options.

Often survey builders want to use images in the Drag & Drop Ranking question. Others might want to put images in the row headers of a Custom Table or perhaps add smiley faces to Rating questions. To do so, follow these steps!

Setup

  1. Start by uploading the images you would like to use in your question to your File Library. These images should be relatively small to display properly. Make sure to add a caption to each image as this is the text that will be read to respondents using assistive technology. To learn more about uploading images, see our File Library: Upload Files and Images tutorial.Add Image Caption for Accessibility
  2. Once your images are uploaded, copy the embed code for each image you would like to use as an answer option in your question. We recommend pasting them into a simple text document so you can quickly access them later.
  3. Now go back into your survey, click Add Question.
  4. Add your question text and select Radio Buttons (or whatever question type you want to use) from the Question Type menu.
  5. Paste your embed codes in the Answer Option column for each image you would like to rank.
  6. Click the Advanced Options gear so that you can customize your Answer Option grid to include Custom Reporting Values. Make sure to click Save once you've made your selection.
    Select Custom Reporting Values
  7. In the Reporting Values column you'll want to specify a meaningful reporting value for each image (otherwise the embed code HTML will be used).Customize Your Reporting Values
  8. Depending on the size of the images, you might need to play around with the Layout tab to make the question look the way you want. In this example, we selected the option to change the Orientation of Labels & Options to Stacked.Example: Images as Answer Options in a Radio Button Question

 Best Practice Tip: Recommended Image Size

For Image Select questions we recommend image files of no larger than 200px by 200px.

When uploading images to the file library you have the option to scale your image using pixel width or a percent. There are also various tools online to resize images e.g. http://www.picresize.com/. It is important to note that resizing images may negatively affect the quality of the image.

Scale Image on Upload

Use Images in the Drag & Drop Ranking Question

Available to: Professional Full Access

When using images as the answer options for a Drag & Drop Ranking question type, sometimes the images won't have loaded all the way when the question "configures" itself, and so the question will be too short to see all the options.

There are a couple of ways to resolve this.

  1. You can add some JavaScript to the page that waits for the page (and images) to load and then resizes the question. To do so, click the Action link on the page with the Drag & Drop question. Select JavaScript and give your action a name and click Save Action and Edit. Then paste the below javascript and Save.
      $(function(){
        $('.sg-type-rank-dragdrop ul.ui-sortable').css({'height': '100%', 'min-height': '500px'});
    });
    
  2. If the images are already loaded in the browser's cache, the issue doesn't happen. So, the alternative low-tech workaround is to load the images in hidden elements on a previous page. To do so, add Image elements with each of the images you are using in your Drag & Drop question on a page prior to the Drag & Drop question.
  3. Then add the following to the CSS Class Name field on the Layout tab to hide the question: sg-hide.

Piping Answer Options with Images

Another use case for this workaround is the ability to use our Piping features with images, as the image select questions are not available in Piping. Please note that the images will display fine in option piping, however, if you pipe from a piped question (aka double-pipe) the images will not display.

Basic Standard Market Research HR Professional Full Access Reporting
Free Individual Team & Enterprise
Feature Included In