• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

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.
0
colonelblue
Asked:
colonelblue
1 Solution
 
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
 
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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now