Answered by:
How to make survey as mandatory for user when they get logged into web site in sharepoint 2010

Question
-
Hi Everyone,
Here i put a scenario where i need to achieve a goal. I need to make user to go through the survey which is mandatory to them after that only they can browse the the other things in website. Initially i thought that making survey as homepage but here user can browse the other things without attending the survey which is mandatory for them. Please anyone can tell me how to achieve my goal.
Rashmi Ranjan Barisal(MCTS)Tuesday, March 15, 2011 6:45 AM
Answers
-
Hi,
How did you know one user complete the survey? Did you have a data table which can be used to record the survey?
If you had a table used to record the survey, you can create module which register an PostAuthorizeRequest event to do it. In the module you can check the current user whether the user has finished the survey. If not, you can change the requested url to the survey's url to do the survey.
Regarding creating the module , you can see the following document.
http://msdn.microsoft.com/en-us/library/ms227673.aspx
Microsoft Online Community Support- Marked as answer by KeFang Chen Monday, March 21, 2011 10:09 AM
Wednesday, March 16, 2011 2:36 AM
All replies
-
I think you have to look to a javascript/jquery solution here (technical) or look for another "functional" way to achieve this. By functional I mean: why do they have to fill in the survey before they can browse ? Is it for new employees? Then you could drop them in a separate welcome class, where you ask them to fill in the survey. You should propose some kind of non-technical way of letting the users fill it in, perhaps with a prize or something ? As a technical solution, I would propose some kind of javascript, where you send the people to a certain url as long a value is not equal to something.
Regards, Marijn Somers|| SharePoint Consultant- MCTS SharePoint 2007, 2010 configuring http://www.beyond-it.be || Twitter: http://twitter.com/marijnsomers || http://marijnsomers.blogspot.com- Proposed as answer by Marijn SomersMVP Tuesday, March 15, 2011 8:04 AM
Tuesday, March 15, 2011 8:03 AM -
Hi MarijnSomers
Thanks for your valuable guide to me. All users are in AD( Active Directory ) need to log in first then do the survey after that they can browse the rest of things in web application. What should i write in javascript/jquery so that it will happen in right way OR any other alternative way there to achieve it.
Rashmi Ranjan Barisal(MCTS)Tuesday, March 15, 2011 8:12 AM -
Hi,
How did you know one user complete the survey? Did you have a data table which can be used to record the survey?
If you had a table used to record the survey, you can create module which register an PostAuthorizeRequest event to do it. In the module you can check the current user whether the user has finished the survey. If not, you can change the requested url to the survey's url to do the survey.
Regarding creating the module , you can see the following document.
http://msdn.microsoft.com/en-us/library/ms227673.aspx
Microsoft Online Community Support- Marked as answer by KeFang Chen Monday, March 21, 2011 10:09 AM
Wednesday, March 16, 2011 2:36 AM