vote up 0 vote down star

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

flag

25% accept rate

3 Answers

vote up 1 vote down

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?

link|flag
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 Apr 27 at 15:04
vote up 0 vote down

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)

link|flag
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 Apr 27 at 13:12
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 Apr 27 at 13:21
I'll try to search in that direction, then. Thanks! – Shannon Apr 27 at 13:25
vote up 0 vote down

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.

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.