Solved

'People or Group' field in Sharepoint Designer forms

Posted on 2010-11-16
2
1,225 Views
Last Modified: 2012-05-10
A couple of questions / issues with Sharepoint Designer 2010:

Problem 1:
I've created a form for new items.  One of the fields has an attribute of 'Person or Group' in it's definition.  I can enter the data in the form just fine; however it doesn't display on a typical list view... so as far as I can tell the field isn't getting populated in my custom form.  When I edit in the default form for the list, the data is populated correctly.  

Problem 2:
So I deleted the row from the form in designer, thinking I'd 're-do' the form and maybe it would work.  That's when I discovered there isn't a Sharepoint Control for a 'Person or Group' field... just various forms of text boxes, yes/no, and lists.  So it appears that I cannot add a 'Person or Group' field to a custom form???  I tried to just add a text box and bind it to the field, but that didn't work... the form just displays nothing for that data entry box.  

Any  ideas?  

Thanks in advance!  
0
Comment
Question by:kj96ee
2 Comments
 
LVL 6

Accepted Solution

by:
Rafael I earned 250 total points
ID: 34159269
Creating forms from scratch is always difficult, because there's connections and work done behind the scenes that MS doesn't make apparent.  These instructions are for SharePoint Designer 2007, but it might work the same.

Instead of creating a form from scratch, I would create a copy of an existing form:

Open the copied page in SharePoint Designer in Split View. Place your cursor after "</WebPartPages:ListFormWebPart>" and then go to Insert -> SharePoint Controls -> Custom List Form.

Pick the list you're working on, and then which kind of form you want (New, Edit, Display).  All the default fields will appear underneath.  Now you can move, delete, and test fields while making sure they work by comparing them to the actual list form on top.  When you're finished, right click on the default list form and hide it from view.  If you delete it, SharePoint will not play nice with your form, and you will lose other functionality you might want to use later.

Make sure you edit the list properties to point it to your new custom page if you are trying to replace the list's default "NewForm.aspx"

Please let me know if this works in SharePoint Designer 2010.  Even if it doesn't, the concept should still hold true: try not to work from scratch and don't delete MS generated parts whenever possible.

Good luck!
0
 

Author Closing Comment

by:kj96ee
ID: 34183973
Thanks!
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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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