Deepu
Deepu

Reputation: 23

Hide Column in Sharepoint List

I am trying to hide a column in SharePoint 2007 list based on Users.

When user submit a request the status column should be hidden and the value set as pending.

When Admin logged in he/she should able to edit the status.

Is there any way I can achieve this with out writing CUSTOM CODE.

Any help would be appreciated.

Thanks Deepu

Upvotes: 2

Views: 4813

Answers (2)

Shane
Shane

Reputation: 4315

No custom code makes it tough. What about creating two views. one view has the column and another does not. Then create two sharepoint web pages and add the first view with the column to one, and the second view without the column to the other. Then put a security group or audience on the pages, so the appropriate one shows up for the user. Not great, but could be an option.

Upvotes: 2

Shaneo
Shaneo

Reputation: 426

I think you'll have to do something with a custom field type - this guy has a solution very close to what you need - however there is custom code involved.

http://www.infoq.com/articles/Dressel-Gogolowicz-wss-security

The only other thing i could think of is to deploy a custom fldtypes.xsl to the hive and pattern match against your column. Then perhaps you could do some for of xsl transformation to show/hide the column - not sure how you'd indicate if a user is an admin or not though.

You are really limiting yourself by ruling out custom code.

Best of luck, Shane

Upvotes: 0

Related Questions