Solved

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

Posted on 2013-11-12
3
387 Views
Last Modified: 2013-11-13
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
Comment
Question by:colonelblue
3 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39643478
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
 

Author Comment

by:colonelblue
ID: 39643540
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
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39644854
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now