O'Reilly logo

SharePoint 2010 at Work by Mark Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Requesting a Review Only Once Per User

Soliciting user-generated content (UGC) is all the rage these days. And one easy way to start collecting some of that is through a simple survey asking if the content was helpful, if it solved the problem, and if the person has any additional questions or comments. But, for any given piece of content, you probably want each person to only answer the usefulness survey once.

I recently worked on a project in which the users were doctors working toward earning continuing education credits. The doctors were asked to read through a case study and diagnose a fictional patient. When they finished the diagnosis, they could check their answers. To get credit, they had to answer a short three-question survey.

Easy enough: a Case Studies list was created to hold the case studies. In the appropriate place on the DispForm, we provided a link to Take the Survey (Figure 3-1), which also sends along a query string to prefill some column data using a calculated column to insert the CaseName and CaseNum (see Figures 3-1 and 3-2.)

The Take the Survey link

Figure 3-1. The Take the Survey link

Prepopulated data in NewForm

Figure 3-2. Prepopulated data in NewForm

The tricky part comes when we want to keep the doctors from taking the survey if they’ve already taken it. We want to give them a message telling them they can’t take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required