Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Controlling access to a list 14 77
Sharepoint workflow on list 6 41
SharePoint List Calculated Field 4 35
Sharepoint data after Hyper-V restore 4 11
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…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 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