SharePoint 2007 – Hiding a field on NewForm.aspx and EditForm for inputers but not for some others

Hello Experts,

I would like the client to be able to enter information via the forms and also be able to edit it if they should need to. I have managed to use JavaScript to hide a text-box that only support should be able to check off and that the clients cannot see.
However using the "JavaScript hide" solution it hides it form everyone and support cannot see the checkbox either.
I don't mind that support sees the form on another page, but how do I use the same list and editform using the same data but have the checkbox show for support?

Thanks in advance.
colonelblueAsked:
Who is Participating?
 
Rainer JeschorCommented:
Hi,
is "Support" a SharePoint group?
If yes then you can use SPServices library (http://spservices.codeplex.com/) to check if the current user is member of this group - GetGroupCollectionFromUser
- see the sample in their documentation:
http://spservices.codeplex.com/wikipage?title=GetGroupCollectionFromUser&referringTitle=Users%20and%20Groups

If you need further help, please attach the HTML source of your view/edit page (in IE -> right click -> Save as).

HTH
Rainer
0
 
Kent DyerIT Security Analyst SeniorCommented:
Why don't you create a separate page for your admins in SharePoint Designer?  This way, you don't have to use logic between the entry folks and the users reading/viewing the form?
0
 
colonelblueAuthor Commented:
But how do you hide it he field on one page and not on the other if you're using the same editfgorm and newform pages?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.