Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Hiding fields in entry form?

  Asked By: Bob    Date: Jul 22    Category: Sharepoint    Views: 2078

Okay, so I know this is probably not possible, but I thought I'd ask
the experts. I have a list that will be used by two groups of users -
one a lower level group that will enter the data, and the other a
higher level admin group. I would like to have a couple of extra
fields in the list for the admin group to add comments, a number
ranking, etc, and I don't want the lower level group to see these
fields. That isn't a problem when viewing the data in list format - I
can create views and hide them from the lower level group. But the
problem is I can't hide them on the entry form, or when a user goes
back in to edit the list item. Is there any way to do this?

Alternatively, we've thought about having a second list for the admin
users only, but I'm unsure of the best way to go about this. Web part
connections would be an option, and I guess we could also
periodically migrate the information in the first list to the new one
that has the extra fields. Of course, we want to make this as user-
friendly as possible for both groups of users. Does anyone have any
ideas for how we could best accomplish this?



3 Answers Found

Answer #1    Answered By: Hema Hegde     Answered On: Jul 22

By the way, even if the first part of my message isn't possible, I'm
still looking for any ideas or suggestions about the second part.

Answer #2    Answered By: Damon Garner     Answered On: Jul 22

The only thing I can think of OOB is to alter the Web Part on the
NewForm.aspx so that it only shows the fields  that you want everyone to
see. Leave the Web Part on the EditForm.apsx to show all fields.

Answer #3    Answered By: Megan Martin     Answered On: Jul 22

I'm not an expert but you can add  JavaScript on the NewForm.aspx based on column name. For example create  a choice column name called "Group Level" values 'User', 'Admin', default to User.

As soon as you select 'Admin', it will display some extra fields  comments etc. If you again select 'User' it will clear comments  and hide admin  fields. You will use same JavaScript on EditForm.aspx file.

But you will have to use FrontPage to add JavaScript or you can also use ?toolpaneview=2 trick, or save the list  as a list template.

Didn't find what you were looking for? Find more on Hiding fields in entry form? Or get search suggestion and latest updates.