3

When you create a new item is there a way to hide a field on the new item form? I have a status field which I dont want the user to fill in. I only want an admin user to be able to change the status. Is this possible?

3 Answers 3

5

A few options that come to my mind are using InfoPath to create a customized form. Using rules and web services, you could look up the user membership and if the user was part of a specific group, show the column (hiding it for everyone else).

Or you could create a custom form in SharePoint Designer. Using some XSLT manipulation/multiple templates, you'd be able to display different forms depending on the logic build into the data form web part.

Or you could use some jQuery and SPServices to check the user group similar to above and use CSS to toggle the row.

Or you could enable the management of content types and mark the admin only field as hidden. This will remove it from all forms and then admins can manage the value of the column using views in datasheet mode.

To edit a field in a content type, go into the List Settings and you should see all the content types being used in the Content Types section. If not, go into the Advanced Settings and tick the Allow mamangement content types to Yes. When the screen refreshes, click on the desired content type, then click the desired field and toggle the Column Setting to Hidden.

5
  • How can I mark an field as hidden on a content type?
    – John
    Commented Oct 27, 2011 at 15:43
  • Updated answer with steps. Commented Oct 27, 2011 at 16:07
  • +1 for list of options and especially for the last, tricky one :) But can't resist to mention, that jQuery/SPServices approach is not secure, so if an ordinary user really wants to change status of an item, he can actually do it easily. Commented Oct 27, 2011 at 17:28
  • Right, it's just CSS manipulation. Commented Oct 27, 2011 at 17:29
  • 1
    Added the other possibility, custom form in SharePoint Designer, which would solve the "security" issue as it would all be rendered server side. Commented Oct 27, 2011 at 17:32
0

Here is a post showing how to make this done with SharePoint Designer http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?List=676af157-7d96-4e15-a987-54b8a3e4d948&ID=3

you can also use this free add-on - http://www.infowisesolutions.com/product.aspx?id=SmartListLite

1
  • SharePoint Designer link is broken Commented Jun 24, 2013 at 1:58
0

you can accomplish it by SharePoint Forms Designer, just create different forms for specified SharePoint groups using drag&drop interface.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.