You can add an image to any question in your survey. If required, you can also customise the way the image is displayed. Images can be imported from an external website, using the image URL. However, for the best results, we recommend that you upload your image into the File Library within SmartSurvey.
If you're adding images to survey, it's good practice, though not mandatory, to add "alt text" to the images, which will aid accessibility. See our guide to adding alt text for more information.
Adding an Image to a Question
To add an image:
- Copy the URL for the image you would like to embed. If your file is in the File Library, copy its URL there.
- Open the Survey Design page of the survey you want to edit.
- Click Add Question to add the image to a new question, or click Edit Question to add it to an existing question.
- Click the Enable Editor button under the Question Text field.
- Click the Image icon in the Editor which will open the Image Properties pop-up window.
- Paste the image URL into the URL field.
- Customise the appearance of your image using the fields that follow.
- Use the Width and Height fields to specify the size of the image. The padlock icon ensure you retain the original aspect ratio, which prevents the image being misshapen.
- Type Alternative Text to provide text that will be displayed if the image cannot be loaded.
- Type the Border for the image, in pixels.
- Type the Hspace and Vspace to add horizontal or vertical whitespace around the image, in pixels.
- Select Alignment to position the image on the page.
- Click the green OK button to insert your image.
Using the Image Gallery
An alternative to the above method is to use the image gallery, which is available in the WYSIWYG editor via this icon:
Place your cursor in the question test where you want the image to be inserted, then click the icon to open the gallery and you will be shown all the images uploaded to the account. Simply click on the image you want to use and it will be inserted into the question. it will be at full size, so you may need to use the image tool (to the left of the gallery icon) to amend the settings as described in step 7 of the process above.
Adding an Image to an Answer
The process to add an image to an answer (for multiple choice questions) is very similar:
- In your survey, create your question and answers.
- After saving the question, open it to edit it, then click the small “edit” icon next to the answer text to which you want to add an image.
- Click “Enable Editor”
- Clicking the “Image” icon on the editor bar will allow you to enter the URL of an image you want to use. Alternatively, you can use an image from your file library by clicking “image gallery”.
- (See Step 7 above for instructions on editing how the image appears.)
- Click “save changes” to finish editing this answer.
Responsive Image Sizing
NOTE: This requires direct editing of the HTML source code. If you are not already familiar with direct editing of HTML, we do not recommend doing this. We do not offer support to users with direct HTML editing or the consequences of any errors caused by such editing.
To make an image responsive in size for changing screen widths, you will need to add a style tag to the source code.
To vary the initial width of the image, alter the percentage up and down as desired.
- Add your image to the survey in the usual way
- in the question editor for the question with the image, click "Source"
- You should see an HTML tag that starts <img src=" and then the filename of your image.
- After the filename, but before the > tag, paste the following: style="width: 50%; height: auto"
- Save the question, then preview the survey.
To vary the initial width of the image, edit the percentage to make the image bigger or smaller as desired.