SharePoint Survey
I am using MOSS 2007, in that survey feature is there, Can I modify the page of creating survey. My requirement is as follows : In create Survey Page of MOSS 2007, I want to add two more fields - Start Date and End Date. When start date comes the survey should be activated and its link should be displayed on home page. When end date comes it should be deactivated and its link should not be displayed on home page. Or the user can respond the survey in the active period of the survey and in the rest of the time he can't respond. only he can view. Is this possible ? If it is possible, How to achive the same? Thanks in advance Rajesh
October 25th, 2010 1:37pm

You can use Content Publishing to make links available during certain periods. The problem with this approach is that if a user has a link to the actual survey, the can bypass your home page and still fill out the survey. The best way to address this is to add two metadata fields to the survey, one for the OpenDate and one for the CloseDate. Then add an event receiver to the survey that overrides the ItemUpdating() method. In this method, check that the current date falls between the OpenDate and CloseDate. If it does, let the update through. If it doesn't, write an error message to the user stating that the survey respond date has passed and that the survey is now closed. That will allow the users to still view the survey, but only update it during the times you specify. It also gives you the ability to re-open the survey if you wish, by simply updating the CloseDate to some date in the future. To get started with the event receiver, start here: http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html I trust that answers your question... Thanks C http://www.cjvandyk.com/blog
Free Windows Admin Tool Kit Click here and download it now
October 25th, 2010 11:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics