Friday, September 3, 2010

Editing SharePoint Surveys

Problem: Add customized numbers in the SharePoint Survey list's question field

Solution: Add question as: "surveyquestionstart 1. surveyquestionend Where's my car dude?"

So now what we want to do is add a javascript to the page that changes
surveyquestionstart -> to <span class="question">
and
surveyquestionend -> to </span>

Javascript can be added by the ToolPaneView=2 trick and adding a content editor web part to insert the script; or open the form directly with SharePoint Designer and add the code to the END of the contents in the main place holder.
http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html

Find the script here

Nice trick to edit the form as webpart zone: add ToolPaneView=2 to the new/edit/disp URLs.
http://www.sharepointkings.com/2008/05/how-to-edit-list-forms-like-newformaspx.html

No comments:

Post a Comment