Creating custom views on Survey in Sharepoint

Posted: November 25, 2008 in SharePoint
Tags:

For other lists within sharepoint we have an option of
creating our own custom views.

(Settings-CreateView).

However we have no such option in case of Survey. To create
our own custom view in case of survey we can do the following

First get the id of your survey. For this select view source
of the following page

http://servername:12345/Lists/DemoSurvey/overview.aspx
of your survey.

You can get the id of the survey at following line

href=”/_layouts/listfeed.aspx?List=545889cc%2D1be0%2D463d%2Dbaa2%2D6dbec360ba68″

The id of the survey list is – 545889cc%2D1be0%2D463d%2Dbaa2%2D6dbec360ba68

Or

545889cc-1be0-463d-baa2-6dbec360ba68

%2D is equal to -

Now we need the url where in we
will use the above list id for creating custom view

For this create a simple IssueTracking
list or any other list for which we have an option of creating custom view.

Now select setting–>create
view for that newly created list

Copy the url

http://servername:12345/_layouts/ViewType.aspx?List==%7B59C5C613%2D11FB%2D44D8%2DB29E%2DC973006C062A%7D&Source=http%3A%2F%2Fd%2D1246%3A12345%2FLists%2FDemo%2520tasks%2FAllItems%2Easpx

Get this much part of the url

http://servername:12345/_layouts/ViewType.aspx?List==%7B59C5C613%2D11FB%2D44D8%2DB29E%2DC973006C062A%7D

%7B is equal to {

%7D is equal to }

Modify it in the following manner

http://servername:12345/_layouts/ViewType.aspx?List={545889cc%2D1be0%2D463d%2Dbaa2%2D6dbec360ba68}

or

http:// servername:12345:12345/_layouts/ViewType.aspx?List={545889cc-1be0-463d%2Dbaa2-6dbec360ba68}

i.e replace the list id.

Now you should be able to create your own custom views on surveys

Comments
  1. Dean says:

    Why not just open the survey in SharePoint Designer 2010 and use the views box (top left) to create new views AND delete old views?

    1 Open SP Designer and open site.
    2 Select Lists and Libraries
    3 Select your survey
    4 In the views box, click new
    5 In the views box, highlight the view you dont want, and press delete.

    No need to worry adout GUIDs at all. :)

  2. GanCW says:

    Is there a way to edit the view you created ?

    • Karen says:

      I know the activity on this blog post is old, but I thought I’d update in case anyone comes across the blog (as I did) and has the same question you did. I found I could edit the view by using this hyperlink:

      http://servername:12345/_layouts/ViewEdit.aspx?List={d23451f4%2D5c17%2D4b58%2Db479%2D2f4df56e4855}&View={AC368947-2B0D-4642-BAAD-8DB914360A09}

      You would, of course, be using your own list and view IDs in the curly brackets. Finding the list ID was a bit tricky. I used SharePoint Designer (which you can download from Microsoft for free). I navigated to the view I created and found a line of code that included the view ID after View Name, e.g.,

      <View Name=”{AC368947-2B0D-4642-BAAD-8DB914360A09}”

  3. Hi – there’s a MUCH simpler way to achieve the same result!

    Go into the survey settings page, then edit the URL from SurvEdit.aspx to ViewNew.aspx

    http://yoursharepointsite/_layouts/SurvEdit.aspx?List=SurveyListGUID

    needs to become

    http://sharepoint.travelcounsellors.com/_layouts/ViewNew.aspx?List=SurveyListGUID

  4. [...] Creating custom views on Survey in Sharepoint « Nishant Rana's Weblog (tags: SharePoint) [...]

  5. Nishant Rana says:

    Hi Sal,

    Check out this post of mine

    http://nishantrana.wordpress.com/2008/11/25/311/

    This is one way we achieved it !!

  6. sal says:

    is there any way to export to spreadsheet from this new custom view? I tried it and it continues to export the original view

  7. Vasanth says:

    Just brilliant. Exactly what I was looking for.

  8. lygroulge says:

    Hey! I like your website :-)
    If u r looking for Paid Surveys this is the place 4 you.
    Start advancing your paychecks on http://tinyurl.com/9kkztw

  9. Sachin says:

    It helped me a lot
    Thanks

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s