Viktor
Viktor

Reputation: 111

"Hidden" columns in Sharepoint 2007

I'm trying to make a custom list for inquiries, where users will fill in some information such as "Name", "Reason" etc. When they've finished filling in the information and added the item, the administrator will then go through the item, and fill in some new columns that the user hasn't been able to fill in.

I hope you understand me, otherwise you're more than welcome to ask questions!

Upvotes: 1

Views: 2168

Answers (3)

brock.samsom
brock.samsom

Reputation: 43

If one did not want to edit the pages, couldn't one use Jquery to hide the fields? I have done this with SPservices. to check the user credentials if you will and then if matched display the hidden fields... all this is done from a web part...just a thought...I actually learned something great today.. great replies.

Upvotes: 1

Le_Fredo
Le_Fredo

Reputation: 639

With SharePoint designer 2007, you can use the SPSecurityTrimmedControl who enable you to show/hide form field (or site action...).

Syntax :

<SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" runat="server"> 
    WHAT_YOU_WANT_TO_HIDE_HERE
</SharePoint:SPSecurityTrimmedControl>

For the PermissionsString, all values HERE

Upvotes: 1

Enilorac
Enilorac

Reputation: 157

You'll need to use SharePoint Designer. You will create custom new and edit forms. This way when the user fills in the new form, only certain fields will appear. Then when the administrator edits the item using the edit form, they will have access to more fields.

Please see this link for more information.

Try making a copy of the form you wish to edit by copying and pasting to the same folder. Then click on the web part for the form and the code above will highlight . Look for tags IsVisible and change it from "true" to "false". This will hide the default form. Do not delete the original form.

Click on the web part in the design view then press your right arrow. This will move the cursor to right after the web part but still within the web part zone. Go to the Insert menu, select SharePoint Controls then Custom List form. A small dialog window will appear, select the list name from the first drop down, then select the content type from the second drop down. Finally select which form you want to insert, New, Edit or Display. Click OK. The new form will be displayed under the default form, and you will then see all of the fields in order and you can add or remove as you like.

Upvotes: 1

Related Questions