Solved

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

Posted on 2013-11-12
3
389 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

896 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

11 Experts available now in Live!

Get 1:1 Help Now