Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I came across the following article which was very good as a starter to branding surveys: SharePoint Kings. However I don't think that this is a very neat approach of how to brand a survey. Is there another way to do same things as described in the article by means of an application page or webpart??

Also tried with sharepoint designer to create a new display form but all i saw was the following: enter image description here so couldn't figure out how to edit each question.

I know that surveys are lists but cannot picture in my mind how I can customize the page to show in a branded way.

share|improve this question

1 Answer

If you add "tokens" to your survey questions, you can use javascript to convert them into tags, and then use css to render the styles. For example, #b#somestyle#/b# and javascript can search the question and replace the tokens with somestyle after the page has been loaded.

You can put the replacement routine in a function, and call it with

_spBodyOnLoadFunctionNames.push("someFunction");

which will cause it to load after sharepoint has built and displayed the page.

see here for info on the replacement script: http://www.sharepointkings.com/2009/08/creating-and-working-with-survey-in_7080.html

Another option would be to edit NewForm.aspx, EditForm.aspx, etc. in InfoPath Designer - but that is only good if you are using Sharepoint Enterprise.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.