Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

NewForm.aspx Toll Bar - how can I use it in a custom page?

  Asked By: Vanessa    Date: Feb 01    Category: Sharepoint    Views: 2131

I am creating a new page in VS2008 to put in the 12-hive Layouts
directory. I want to use the toolbar that is displayed on the
NewForm.aspx page when you addd a new item a list. The buttons on
NewForm toolbar are "Attach File" and "Spelling".

Could someone please point me to an example of how to add/use a SP
toolbar in a custom form?



3 Answers Found

Answer #1    Answered By: Aastha Acharya     Answered On: Feb 01

Those toolbars are built in to the ListView webpart that is on the page. To use
it you either need to add a similar ListView web part to the page  and configure
it to show the toolbar  (you can do this from the Insert menu in SharePoint
Designer) or you need to create a custom  web part and programmatically add a
similar toolbar to it. Here's a BLOG entry on how to add a toolbar to a custom
web part.


Answer #2    Answered By: Glenda Roth     Answered On: Feb 01

I think I have made things overly complex for myself -- I noticed
that after creating  the custom  list and opening SharePoint designer
that there are forms created under the Custom list  that I have

What I am really trying to get at is that I want a site user to be
taken DIRECTLY to the Add New List Item page  when they click on
the "Contact Us" Quick Launch menu item. I think I have found a way
to do that via cutting and pasting the NewItem URL into the Quick
launch bar, but when the user SAVES the comment they are taken back
to the AllItems.aspx page.

I do not want users to see the Contact Us list - I only want the sys
admins to see the list of submitted items.

Is there a way to do this - or a way to modify the NewItem page to
NOT go to the AllItems page after the user saves an entry?

Answer #3    Answered By: Jada Clemons     Answered On: Feb 01

Try adding "&source=" plus the URL of the page  you want them to be
directed to when they have created the item, at the end of the link
to the newitem.aspx form.

This works in most situations. It fails in some cases, e.g. where
you have a multi-page survey.

Didn't find what you were looking for? Find more on NewForm.aspx Toll Bar - how can I use it in a custom page? Or get search suggestion and latest updates.