Share via


Add image to SharePoint Survey for multiple questions??

Question

Friday, November 14, 2014 11:22 PM

Hi,

How can i show a particular picture for group of questions in sharepoint 2010 survey? From following link i was able to add image for one question. so what i need to do if i want to add more questions with the same image?

http://robdevereaux.wordpress.com/2013/08/09/how-to-add-pictures-to-a-survey/

Thanks

All replies (2)

Saturday, November 15, 2014 1:24 AM | 2 votes

If you want to add images to multiple questions using the code at that link do something like:

elements[e].innerHTML = elements[e].innerHTML
.replace('CAR_IMAGE','<img src="/PATHTO/IMAGE/CAR.jpg"></img>')
.replace('BOAT_IMAGE','<img src="/PATHTO/IMAGE/BOAT.jpg"></img>')
.replace('PLANE_IMAGE','<img src="/PATHTO/IMAGE/PLANE.jpg"></img>');

Also, if you would like to add a picture, text or formatting to every survey page in a survey with page breaks you will typically need to edit both the NewForm.aspx and EditForm.aspx pages using SharePoint Designer or by adding a Content Editor Web Part to both pages.

Here's some of the other things like this I have done with surveys:
http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html

http://techtrainingnotes.blogspot.com/2010/07/sharepoint-add-instructions-and-color.html

(and there's a chapter on surveys in my customization book.)

Mike Smith TechTrainingNotes.blogspot.com
Books: SharePoint 2007 2010 Customization for the Site Owner, SharePoint 2010 Security for the Site Owner


Monday, November 17, 2014 5:21 PM

Mike,

Thanks for your reply. i was able to get the solution from the link i have mentioned. just my question was how can i add two questions with image? your link was helpful too.