Answered by:
Seeing only some items on a list input form

Question
-
I've been tasked with creating a list that contains items that certain items are "public" and the rest are internal items. What the owner is wanting is to have only the first 9 fields available for an end user to fill out. They don't want the end user to see all the fields and they don't want the end user to see any entries that are already in the list. So my questions are this: 1) Is this even possible? 2) If it is possible, how difficult is it going to be to do? 3) Where can I get assistance in completing this?
If any of this doesn't make sense, please let me know.
Thanks in advance,
Stephen Gundrum
Wednesday, February 23, 2011 6:16 PM
Answers
-
yes - it is possible to hide fields in list forms in runtime using user properties (e.g. based on whether user is internal or external). E.g. check this article: SharePoint 2007 – Hiding fields on NewForm.aspx and EditForm.aspx . It uses javascript approach so you will need to pass some server side data inside javascript. It can be done using similiar technique: Pass locale of current web site (SPWeb) in Sharepoint into javascript . One more thing: in order to allow server side tags in Sharepoint designer you should check this: SharePoint 2007: using ASP.NET server side code in your pages .
Blog - http://sadomovalex.blogspot.com
CAML via C# - http://camlex.codeplex.com- Marked as answer by David HM Friday, March 4, 2011 3:45 AM
Monday, February 28, 2011 7:56 PM
All replies
-
Steve,
You could set permissions for each list item by using the manage permission in the context menu of the item.
This is to be done manually. If you want to automate the process you need to have some kind of event receiver that would set the permission when a list item is created.
You could also try Secure Column
Pradeep
Wednesday, February 23, 2011 10:45 PM -
Can data be put into a list from a web page though? There is 14 fields that only the external users need to see.
Monday, February 28, 2011 5:55 PM -
yes - it is possible to hide fields in list forms in runtime using user properties (e.g. based on whether user is internal or external). E.g. check this article: SharePoint 2007 – Hiding fields on NewForm.aspx and EditForm.aspx . It uses javascript approach so you will need to pass some server side data inside javascript. It can be done using similiar technique: Pass locale of current web site (SPWeb) in Sharepoint into javascript . One more thing: in order to allow server side tags in Sharepoint designer you should check this: SharePoint 2007: using ASP.NET server side code in your pages .
Blog - http://sadomovalex.blogspot.com
CAML via C# - http://camlex.codeplex.com- Marked as answer by David HM Friday, March 4, 2011 3:45 AM
Monday, February 28, 2011 7:56 PM