SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Creating a Survey in MOSS 2007
All About SharePoint - S.S. Ahmed - MVP Microsoft SharePoint

Creating a Survey in MOSS 2007

You may have created surveys in SPS 2003. Surveys are also available in MOSS 2007 and the best new feature is "Branching". You can skip to a specific question based on the user response. This helps a lot in creating *intelligent* surveys. Another new feature is workflow. Now, you can enable workflow in your surveys. Let's create a survey and see how branching works:

1. Open a site.

2. Click on "Surveys" in Document Center. This will open the following page. Any surveys already created in your site are available on this page. Click the "Create"  button to go to the web part selection page.

3. The following page will open when you click the "Create" button (see figure in step 2). Select "Survey" in Tracking Section.

4. In the new page that opens, give a name to your survey, add some meaningful description. There are a couple of other options that you can select, for example, select "Yes" if you want to show user names in survey results or select "Yes" if you want to allow multiple responses by a single user. Click "Next" to go next screen.

5. Here you can define your questions. For demo purposes, I added the following as my first question:

Does MOSS 2007 contain useful features?

Enter "Yes" and "No" on separate lines as shown below. The type you selected for this question was "Choice". These options should be displayed as radio buttons. You can show them in drop down as well. It doesn't make any difference.

Click "Next Question" to add another question. Next question is:

Which features do you like best?

Options are: (Radio buttons)

a. Document Libraries
b. Workflow
c. Custom Lists

Click "Next Question" to add following question:

Your comments about built-in workflow? (Multiline text  box)

Click "Next Question" to add following question:

Why do you think that MOSS 2007 doesn't contain useful features? (Multiline text box)

Click "Finish". Next, you will see the following page:

6. Click on "Permissions for this survey". You will see following screen. Click users here and assign permissions. Click "Add Users" (Action link) to add users.

Assign "Approval" rights if you intend to use workflow.

7. Click "Settings > Survey Settings" to change settings.

8. Click "Advanced Settings".

9. Make sure following options are selected (see figure shown below):

a. All responses
b. Only their own.

10. On the settings page, click the first question to add branching.

In the branching section (bottom of the page), you will notice their are two drop downs, one against "Yes" which is your first option in question 1 and the second against "No" which is your second option in question 1. In "Yes", select "Which features do you like best" and in "No", select "Why do you think that MOSS 2007 doesn't contain useful features?". Click OK.

Now click on second question in the list. Second question should be "Which features do you like best?". You will see that there are three options available in the branching section: Document libraries, workflow, custom lists. Against all three options, select "Your comments about built-in workflow?".

Click on question 3 which should be "Why do you think that MOSS 2007 doesn't contain useful features?". In branching section, select "Your comments about builtin workflow?" against the "Any Response".

Your branching is complete. Run your survey to test branching options.

 

11. You can also change the order of the questions.

Depending on the option selected by the user in question 1, second question will be shown accordingly.


Posted 11-01-2006 7:27 PM by ssa

Comments

All About SharePoint - S.S. Ahmed - MVP Microsoft SharePoint wrote Creating a survey in MOSS 2007 programmatically
on 10-06-2007 9:17 PM

Creating a survey in MOSS 2007 programmatically I wrote about surveys in one of my previous posts. You

Trissa wrote re: Creating a Survey in MOSS 2007
on 10-16-2007 6:04 PM

How can I create a survey that includes an image with each question?

Chris wrote re: Creating a Survey in MOSS 2007
on 10-29-2007 12:39 AM

How do you do this for an anonymous users?  

Andy Rosendahl wrote re: Creating a Survey in MOSS 2007
on 11-13-2007 3:18 AM

Hi S.S. Ahmed,

did you really manage to start a Workflow from a survey? I tried to follow your advice and gave them "approval" rights (even full control). A kb article sais it would not be possible at all to start a workflow from a survey (support.microsoft.com).

Andy

ssa wrote re: Creating a Survey in MOSS 2007
on 11-18-2007 12:20 AM

Andy

I did not try the workflow from survey. My article talks about the routing of questions based on user's previous response. Yes, I saw the MS KB article. Article says that starting of workflow from survey's response is not possible.

rul wrote re: Creating a Survey in MOSS 2007
on 11-19-2007 8:51 AM

while it is a great option, i am still figuring out the achiving of the data. how could you do that? i ahev employee feedback survey, and i want the data to reset to 0 for every first of the month .. any idea?

currently what i am doing is that - i will download the data for the previous month, then delete the response one by one ..

thank you

Jyothi wrote re: Creating a Survey in MOSS 2007
on 11-22-2007 1:22 AM

How to include images in survey?

Paul wrote re: Creating a Survey in MOSS 2007
on 12-06-2007 6:24 AM

Is there a way of adding a link to a question in a survey to a document that sitting within a document library within the same site?

Wang wrote re: Creating a Survey in MOSS 2007
on 12-11-2007 1:45 AM

How do I limit response to one of the question answers? Eg, there is one question with answers "Yes" and "No", I want 5 answers to "Yes" only, and answers that after first five "Yes" will be prompted a message, and no more "Yes" will be accepted.

ssa wrote re: Creating a Survey in MOSS 2007
on 12-13-2007 10:18 AM

This can not be achieved without custom programming. You will have to create a event handler that will manage this for you.

ssa wrote re: Creating a Survey in MOSS 2007
on 12-13-2007 10:25 AM

ehmmm... I dont think you can do it out of the box. I will play with the template and see if we could achieve it by manipulating the survey template. you can also try it yourself. I may not get time as I have lot of work to complete before christmas.

All About SharePoint - S.S. Ahmed - MVP Microsoft SharePoint wrote Enabling Anonymous access in surveys
on 12-25-2007 2:56 AM

I am asked quite often about the anonymous access in surveys. This may be because I wrote a couple articles

maideen wrote re: Creating a Survey in MOSS 2007
on 12-25-2007 11:14 PM

Is that possible to restrict the survey to add only one question.

If so pls advice the solution to achieve this, as it required very much for me.

Raul wrote re: Creating a Survey in MOSS 2007
on 01-07-2008 12:59 PM

How can I mix a Drop down menu with a rating scale question.

Jagan wrote re: Creating a Survey in MOSS 2007
on 01-22-2008 10:30 AM

how to attach a file as a response to a survey question? Is there a way?

Thanks

Casey wrote re: Creating a Survey in MOSS 2007
on 01-29-2008 12:25 PM

Does anyone know how to disable a survey?  For example, I have users who want the survey open for only a certain time period - how would you do this without having to go in and change permissions all the time?

ssa wrote re: Creating a Survey in MOSS 2007
on 02-04-2008 7:56 PM

Dear Casey

You can do it programmatically using the timer job. You can also use Windows scheduler to run a file that will check the timing and disable the survey but you may not want to do all this if it's a rare job. Yes, if you think you need to do it quite frequently then it's worth a one time programming effort.

ssa wrote re: Creating a Survey in MOSS 2007
on 02-04-2008 8:21 PM

I dont think it is possible OOTB. May be someone else has experience of doing it though a custom solution.

Ratheesh wrote re: Creating a Survey in MOSS 2007
on 02-12-2008 4:34 AM

How can I create a survey that includes an image with each question?

I saw this question in this blog... but no one replied for it?

Matt wrote re: Creating a Survey in MOSS 2007
on 02-14-2008 1:31 PM

!!!!!!!!!!ANYONE KNOW HOW!!!!!!!!!!

Everyone (or Group) can submit and not change.

A Group with Read Only.

A Group with Modify.

All should be able to see the total results.

If I only allow them to see their own they will not see the results of the total submitted survey.

Anyone know the fix?

Maybe a workflow setting permission would work.  But then I would have to disable the ability to create Survey's to just our IT WEB Team.  I currently have at least 20 or so who manage their department.  Only one/two who are on the IT WEB Team.  

Custom Permission Groups? Tried this, branching gives permission error.

!!!!!!!!!!ANYONE KNOW HOW!!!!!!!!!!

Casey wrote re: Creating a Survey in MOSS 2007
on 02-18-2008 10:15 AM

Does anyone know how to show user names in survey results to only a select group of people?

hatem elshenawy wrote re: Creating a Survey in MOSS 2007
on 02-25-2008 1:32 PM

we are using publishing template in our project , but this template does not support  Survey item list, but collaboration site template support it, I have try to save it as STP from collaboration and install it in publishing template but it does not appear under the list of available item list types, could you send to me some work around for that , we need to have Survey in our portal.

MV wrote re: Creating a Survey in MOSS 2007
on 03-06-2008 4:04 AM

How do I allow readers to respond to the survey and view only a  graphical summary of the results?

ssa wrote re: Creating a Survey in MOSS 2007
on 03-22-2008 10:51 PM

MV

Readers can not respond to the survey. They must have contributor rights. If you want your readers to be able to participate in the survey, then enable anonymous access but then every one even people who will not have reader access will be able to respond. To see how to that see "enable anonymous access in surveys" article on this blog.

Regards

SSA

John S wrote re: Creating a Survey in MOSS 2007
on 03-26-2008 7:08 PM

I want to create a survey in MOSS 2007 with branching (which creates multiple pages automatically) that has anonymous access. When I create such a survey, it gives me Error: Access Denied when it navigates to the second page on the survey. I created a dummy account with contribute access, and I get the same error. When give the dummy account full control (which is absurd) it works fine. Am I SOL using MOSS 2007 for the survey described in my first paragraph?

shairu wrote re: Creating a Survey in MOSS 2007
on 04-01-2008 10:10 AM

hi,

just want to ask how to customize a sharepoint survey template? i've been trying to search the web for answers and I came across this site. I have done customized templates in sharepoint but it is in portal publishing sites in MOSS 2007. so i am quite new to surveys in WSS 3.0. would there be a difference in terms of approach? The things is.. i need to change the title/lable of the suceeding questions depending on the value selected from the dropdown down list of the current question. i know that I can handle this in javascript, just not sure how to start. hope you could share some useful readings/article for this kind of issue.

thanks in advance!

Simon wrote re: Creating a Survey in MOSS 2007
on 04-14-2008 10:29 AM

Does anyone know how to display a survey on the portal home page? I tried using the Content Query web part but all I can get is a link to each response with titles of (Blank).  Thanks in advance

JK wrote re: Creating a Survey in MOSS 2007
on 04-16-2008 10:26 AM

How do I create a survey template, download it, and then upload to another sharepoint site?  I found where to create a template, but can't figure out how to get it to upload it to my other site.

Jaimes wrote re: Creating a Survey in MOSS 2007
on 04-28-2008 10:32 PM

Hi,

How does the branching for surveys in MOSS render? I recently created a page and embed the survey (with branching) on it. After publishing the page, I tried to use the survey with the branching capability. When I clicked respond to this survey, you can see that the URL shows the ?Source=URL of the page where the survey has been accessed. In a survey that does not allow branching, once the submit (Save) button is clicked then users wil be redirected to the page where the MOSS survey is embedded. Now when I accessed the survey with branching, after answering the first question and clicking Next, I am redirected to another page with the survey question and this time the URL appears like this: EditForm.aspx?ID=4&FirstField=Why_x0020_is_x0020_this_x0020_yo. So when I click Submit or Save, I am brought to the Survey List page and not anymore to the page where i have embedded the MOSS survey list?

Is this a behavior of branching for MOSS survey list? What do I need to do to follow the behavior of the survey even with the branching capability?

Thanks,

Jaimes

Sanjay wrote re: Creating a Survey in MOSS 2007
on 05-20-2008 7:11 AM

When somebody tries to respond to a survey more than once, it gives the following error message:

You are not allowed to respond again to this survey

How do customize this error message?

Andy wrote re: Creating a Survey in MOSS 2007
on 06-06-2008 8:20 AM

Hi

I have a windows authentication publishing site with a team site beneath it containing a survey. I have set the survey as above on this blog, to allow anonymous entries.  It works fine on the windows authentication admin site.

However the site is viewed externally via a Forms authentication site that has public anonymous access.  If I use that site when you click on the link to go to the survey it diverts me to the login page instead of the form.  Anonymous access to the main publishing site works fine on the rest of the publishing site via the Forms site.

Has anyone a renedy for this?

Thanks

Andy

Anil wrote re: Creating a Survey in MOSS 2007
on 06-23-2008 5:34 PM

Does any one know how to stop the survey after certain responses (say 30).

Thank you

TJ wrote re: Creating a Survey in MOSS 2007
on 06-24-2008 3:21 AM

why no one is ansewring on how to add an image in survey question (Image choices)..

Rusty wrote re: Creating a Survey in MOSS 2007
on 07-04-2008 11:42 AM

Trissa, Jyothi and Ratheesh

You will probably have to look into creating a custom Field Type to add an image to your questions.

lucas wrote re: Creating a Survey in MOSS 2007
on 07-07-2008 7:58 AM

I have a MOSS 2007 survey and am having problems getting in to access partially completed surveys.  I have gone to the link to view all responses but they are not there.  For instance,  the overview states 4 surveys completed but when I go to view all responses, only 1 shows. User are asking me how to get back in to complete and the partial surveys are not there.

Jacoline wrote re: Creating a Survey in MOSS 2007
on 08-07-2008 2:57 AM

How can I make surveys invisible? I want to keep them, but not to show them.

BrianD wrote re: Creating a Survey in MOSS 2007
on 08-11-2008 3:38 PM

I don't think images are supported in the survey by default.  One workaround option I am using is to have a question ask for a response 1 - n, where n is your number of images to choose from.  I am then using SharePoint Designer to edit the ASPX file to include the images along with their number.  This way the user can see the images while responding.  Since this involves manually editing the page, I wouldn't recommend it except for occasional use.

Dipty wrote re: Creating a Survey in MOSS 2007
on 09-12-2008 1:10 AM

I want to add start Date , End Date with Existing Survey in the Sharepoint , How Can I achieve it.

Leon Castro Lagunas wrote re: Creating a Survey in MOSS 2007
on 09-18-2008 4:09 AM

A nice thing, that was not mentioned i this article is the option of changing the end (sourse) url.

For example if you want the user to end up on a thank you page after taking the survay, then launch the NewForm.aspx with the Source parameter. Example:

www.sharepointsitenameexample.com/.../NewForm.aspx

HOWEVER, this does not work when branching the survey  questions :-(

Fjtorres wrote re: Creating a Survey in MOSS 2007
on 09-18-2008 4:49 PM

Ok...  

I have several reports published on my SharePoint 2007 Site. What I like to do is, when a user open's a close a report give the user a pop-up page with a survey. Each report will have there own survey. Can I do this with the Survey feature in MOSS 2007 or Do I have to dig in the code???

Christophe wrote re: Creating a Survey in MOSS 2007
on 09-19-2008 4:10 AM

Nice tutorial, would be perfect without the sentence: "Now, you can enable workflow in your surveys."

Data Donna wrote re: Creating a Survey in MOSS 2007
on 09-19-2008 11:23 AM

I need to allow participants to take the survey more than once.  Where do I change the limitation of each respondent taking the survey just once?

ssa wrote re: Creating a Survey in MOSS 2007
on 09-27-2008 12:50 PM

Thanks Christophe! I totally agree :)

Regards

SSA

ssa wrote re: Creating a Survey in MOSS 2007
on 09-27-2008 1:05 PM

Thanks for sharing the tips with the readers Leon!

-SSA

PANVEGA wrote re: Creating a Survey in MOSS 2007
on 10-13-2008 6:08 AM

Is it possible to customize the simple text question field to a richtext field? If yes, how to realize the field?

Krishan wrote re: Creating a Survey in MOSS 2007
on 10-13-2008 7:43 AM

Hi,

I want to attach a weight to the options the user choose. I am planning to calculate an aggregate of those weights.

Ex. Ques.1 Which OS do you use?

- Windows

-Mac

-Linux

I want to associate these options with a text OS and a rating like, Windows with 3, Mac with 2 and Linux with 1. Is this possible with MOSS 2007?

Sen wrote re: Creating a Survey in MOSS 2007
on 10-24-2008 12:46 AM

Hi SSA,

I have a sharepoint survey with nearly 120 questions seperated by page breaks. When the user tries to navigate back to First page and when again moving to next page, the user gets  " Error:You are not allowed to respond again to this survey." tough he hasn't completed the survey. Any work around for that?  Note:Have set user to respond only once to the survey. Help needed urgently. Thanks in advance.

David wrote re: Creating a Survey in MOSS 2007
on 10-28-2008 4:02 PM

Can I create a question with possible answers listed  and an Other (fill in the blank) using radio buttons?

ie. On average, where do you go shopping most often?

_ Malls

_ Plazas

_ Outlet centers

_ Other:_______________

Thanks in advance!

ssa wrote re: Creating a Survey in MOSS 2007
on 10-29-2008 2:05 PM

You can use multiple choice questions in surveys

Arief wrote re: Creating a Survey in MOSS 2007
on 10-29-2008 11:09 PM

How to change to a new paragraph when type the question.

Because when I try it with hit 'enter' or 'shift+enter', in edit survey question section it shown as a new paragraph, but when I want to respond the survey the question shown as continuous line, not a new paragraph.

Arief wrote re: Creating a Survey in MOSS 2007
on 10-29-2008 11:09 PM

How to change to a new paragraph when type the question???

Because when I try it with hit 'enter' or 'shift+enter', in edit survey question section it shown as a new paragraph, but when I want to respond the survey the question shown as continuous line, not a new paragraph.

Andy wrote re: Creating a Survey in MOSS 2007
on 10-31-2008 6:00 AM

what if i have to create a survey that accumulates the scores if the user gets the answers rite, the form will be created in InfoPath?

Jetter wrote re: Creating a Survey in MOSS 2007
on 11-05-2008 3:49 PM

Is there a tutorial available on how to include images in the display of the answers to each question in the poll? I see this has been asked alot but no detailed answers. Any ideas?

Thanks!

Tony wrote re: Creating a Survey in MOSS 2007
on 11-25-2008 9:05 AM

Help - can anyone give me advice on adding graphics or images to the surveys - such as pictures, logos, etc...

MK wrote re: Creating a Survey in MOSS 2007
on 12-02-2008 7:35 AM

I'm creating a survey in Sharepoint and would like the responses to be

Strongly Agree

Agree

Disagree

Strongly Disagree.

These should be displayed from left to right across the page.  Choosing rating gives the first and last with numbers underneath  but not the text.  Is there a way to do this in sharepoint?

Dazler wrote re: Creating a Survey in MOSS 2007
on 12-03-2008 9:35 AM

Hi Every One,

Just want to know that how Survey in SharePoint is differ from a polls utility as far as user perspective is concerned..

Thanks in advance...

Gayathri wrote re: Creating a Survey in MOSS 2007
on 12-08-2008 5:52 AM

How to customize the graphical results of the survey, as in i dont want the results for the first two questions to be shown, simply becuase they are text fields and each user will give a different value and doesnt make sense giving percentage

xngelo wrote re: Creating a Survey in MOSS 2007
on 01-14-2009 10:41 AM

what if someone wants to display the page number and number of pages on each survey question page. for eg. Page 1 of 10

kashif wrote re: Creating a Survey in MOSS 2007
on 01-21-2009 3:22 PM

Here is my scenario....

I have two types of user...respondent & admin

in total i have 10 questions, 7 for respondent and 3 for admin.

how can i hide admin questions when respondent is filling the survey? and when admin is opening up the response he can add additional three answers into the survey.

you can also send me a response on cloudno009@hotmail.com

I appriciate your help!

nsp wrote re: Creating a Survey in MOSS 2007
on 02-17-2009 10:02 PM

how do i add extra range text for Rating Shcale?

vee wrote re: Creating a Survey in MOSS 2007
on 02-20-2009 6:18 AM

Did anyone ever find out if it is possible to weight various answers or questions?

So that more important items would be assigned a greater numerical value for analysis.

Naveed wrote re: Creating a Survey in MOSS 2007
on 02-24-2009 1:50 AM

How can i create a survay list with 100 questions but users can view 50 (dynamic/Random)que only.But those q will come from the 100 items .

Any help.

Rock wrote re: Creating a Survey in MOSS 2007
on 02-26-2009 12:30 AM

How to create surveys programmatically?

can have a id for the survey being created?

i need Quesion&Answers branching type with 4 levels of Q&As, can anyone tell how to acieve it?

i need to limit the responses to a number?

Thanks in advance

O carallo 29 wrote re: Creating a Survey in MOSS 2007
on 03-05-2009 10:04 AM

Reply about adding an image to a question.  Well I found a rather roundabout way to do this.  You can only do this at the time of creating a question.  

1. Edit the _/layouts/qstnew.aspx and pop in a <CMS:AssetUrlSelector> control somwhere in the form table, such as below the description.

2. In the javascript SubmitPage(faddMore) function, set this variable

var HeaderImage = TrimSpaces( frm.ctl00$PlaceHolderMain$assetImageHyperlink$AssetUrlInput.value );

3. Locate the script :  var Schema = ...

insert this line to set this unused property as a placeholder.

(HeaderImage   ? 'HeaderImage="' + SimpleHTMLEncode(HeaderImage)  + '" ' : '')

Now the url to the image will be stored in the HeaderImage field property, which is unused anyway, so it serves our purpose.

4. The control that renders the question is TwoRowCompositeField.

Add an image to the TwoRowCompositeField control in the 12\controltemplates\defaulttemplates.ascx. like this:  

<img alt="qImage" src="<SharePoint:FieldProperty ID='imageFieldProperty' PropertyName='HeaderImage' runat='server' />

you figure out where you want it.

Restart iis once you change the controltemplates file.

You cannot change the HeaderImage property later.  You'd need to delete the question, so make sure it's the right one before publishing the survey ;)

Samson Louis wrote re: Creating a Survey in MOSS 2007
on 03-24-2009 12:15 AM

How to change to a new paragraph when type the question???

Because when I try it with hit 'enter' or 'shift+enter', in edit survey question section it shown as a new paragraph, but when I want to respond the survey the question shown as continuous line, not a new paragraph.

Samson Louis wrote re: Creating a Survey in MOSS 2007
on 03-24-2009 12:20 AM

How to change to a new paragraph when type the question???

Because when I try it with hit 'enter' or 'shift+enter', in edit survey question section it shown as a new paragraph, but when I want to respond the survey the question shown as continuous line, not a new paragraph.

Gajan wrote re: Creating a Survey in MOSS 2007
on 03-26-2009 2:30 PM

I would like only one response per branch number and branch number is a question in my survey. How do I limit the end user from creating multiple responses for the same branch #. Any help is much appreciated.

Thanks in advance.

Joos100 wrote re: Creating a Survey in MOSS 2007
on 03-30-2009 5:46 AM

Do I summarise it right if I say that a user must get Contribute rights to fill in the survey? Or do I get it wrong?

(Please confirm or say what it would be)

Sapna wrote re: Creating a Survey in MOSS 2007
on 04-24-2009 1:20 PM

Hi

When I create a survey, all my questions seem to come out badly formatted, with a line break every third word or so. Any ideas on how I can get the question to appear in one line (like in your screenshot above?)

Thanks!

R A wrote re: Creating a Survey in MOSS 2007
on 05-11-2009 5:06 PM

Can somebody pls reply as to how you can disable the survey once time for survey has ended. At this time only admins should be able to view the survey and responses.

Gourav wrote re: Creating a Survey in MOSS 2007
on 05-13-2009 7:49 AM

Can you put some light... on how can we reduce the size of the survey.. that will be quite helpfull.

Zenitta Anderson wrote re: Creating a Survey in MOSS 2007
on 05-28-2009 9:23 AM

How can I add a link within a survey question?

zuzana (zuzana.ferkova@gmail.com) wrote re: Creating a Survey in MOSS 2007
on 06-15-2009 4:44 PM

Guys, I would really appreciate your help. Need to create a survey, where pictures will be loaded and people can just click "like" under the one they like. Do you have any clue how to do this? Thanks.

Ladybird wrote re: Creating a Survey in MOSS 2007
on 06-26-2009 8:22 PM

How do I add a link to a Sharepoint survey?

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.