Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Modifying EditForm.aspx and NewForm.aspx

  Asked By: Cyrus Blackburn         Date: Oct 23, 2008      Category: Sharepoint      Views: 1352
 

We have a few columns on a list that a only a subset of users should be
allowed to edit. So regular users can add/edit list items but only HR
can edit the additional fields.

We've created site columns, a content type and a list template.

I was thinking of modifying EditForm.aspx and NewForm.aspx using
<Sharepoint:SPSecurityTrimmedControl runat="server"
Permissions="ManageLists"> to restrict access to these columns.

My boss has concerns though about editing these pages in case the
modifications are not compatible with future versions of MOSS.

Any thoughts on modifying these OOTB pages?

Tagged:          

 

4 Answers Found

 
Answer #1       Answered By: Victoria Bell          Answered On: Oct 23, 2008       

As a best practice, I would recommend creating custom field types before
creating custom data entry forms. IMHO, custom data entry forms should be
a last resort because you take away the advantages of using SharePoint for
data entry.

The following link provides an example on creating a "private" custom
field type  that could resolve your issue:
www.u2u.info/.../Post.aspx?List=6f246d9a%2De4e7%2D484\
6%2Db776%2Df9a62112ffb7&ID=17

 
Answer #2       Answered By: Cassidy Sharpe          Answered On: Oct 23, 2008       

Another option is to use this freeware from Codeplex that allows you
to assign permissions on fields  in a list  for create, edit  and view
by different groups:

http://www.codeplex.com/SPListDisplaySetting

I have not tested it beyond installing it and quickly looking at it,
and I wouldn't rely on it as an absolute security mechanism, but it
may be sufficient for your needs. It avoids the need to touch the
forms, and doesn't require any coding to implement.

The same author also has a project that lets you assign access
permissions to views and default views on a list to different groups:

http://www.codeplex.com/SPViewPermission

 
Answer #3       Answered By: Linda Mason          Answered On: Oct 23, 2008       

In this case  i would create a event handler and on ItemUpdating and
ItemAdding and in those events i would check if the person is updating the
field or adding the field belongs to certain group.if he belongs then allow
him to update else deny.

 
Answer #4       Answered By: Artur Malinowski          Answered On: Oct 11, 2010       

You may now easily customize what fields you show or allow for editing with Malcan Worklow for Sharepoint. You decide who, what and when can edit. Check http://malcan.com please.

 
Didn't find what you were looking for? Find more on Modifying EditForm.aspx and NewForm.aspx Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].