views:

964

answers:

3

I'm looking to add a new field onto my NewForm.aspx, EditForm.aspx and DispForm.aspx pages in Sharepoint Designer 2007. I've managed to add a new textbox webpart and have edited the Common Textbox Tasks to make the Data Field my new field (Contacts..)

But how do I edit Edit.aspx and DispForm.aspx to display this new field?

I've looked around already answered questions on the site but I haven't run across what I'm really looking for -- sorry if I missed it!

Thanks! Shannon

A: 

You have to use SharePoint Designer to access the site and edit those aspx (in the 'Forms' subfolder of the folder named after the list)

axel_c
I've gotten that far, the problem seems to be even after I add the text box to both the NewForm.aspx and EditForm.aspx and have their Data Field set to "Contacts", what the submitter puts into "Contacts" doesn't populate when you pull up the EditForm.aspx page...
Shannon
I haven't touched Designer for ages, but I seem to remember you had to mess with the XSL code in the aspx's to make it populate your fields.
axel_c
I'll try to search in that direction, then. Thanks!
Shannon
+1  A: 

It doesn't count as "development", but wouldn't creating a new List column, Site Column or Content Type add this additional field to all your list forms just fine? How does this not work in your particular case?

ROXORITY SharePoint Web Parts
I don't understand why it doesn't work, aswell. I added the same type of textbox onto the EditForm.aspx and set it's Data Field to "Contacts" (like in the NewForm.aspx), but when I submit a test request and then pull up the EditForm.aspx for it, the textbox is there but not what I entered into NewForm.aspx?
Shannon
A: 

You are probably going about this the wrong way. You should not need to change the edit and new forms for a list just because you want a new field. You do need to add the field to the underlying list and rely on the code in the forms to display the field correctly.

Nat