Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:23:23+00:00 2026-05-17T01:23:23+00:00

We use MOSS 2007, and I have a document library with several document templates

  • 0

We use MOSS 2007, and I have a document library with several document templates in it. When someone clicks the document template (for example .dotx), the templates is opened. But I want it working so that a new document is opened based on the template.

I can do this with the New button in the toolbar above the list, but I do not like this, and it is not as easy to use for the SharePoint users.

There is a workaround, the user has to click at the right side of the name of the template, then go to the menu ‘Send To’ and choose ‘Download a Copy’, in the popup they have to choose ‘Open’ to create a new document based on the template.

I did found some javascript that can be used to create a new document based on a template:

<a href="javascript:createNewDocumentWithProgID('[template path],
  '[default save dir]', 'SharePoint.OpenDocuments', false)">
   Create new document
</a>

I really want to use this, but is there a way to add this script to a link in a column in the document library list?!? I tried a new column with type Hyperlink, but an URL starting with ‘javascript:….’ is not a valid url according to SharePoint.

Or is there another way to accomplish this, a column in an existing list with some text, and if you click on that text, a document will be created based on the template.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:23:24+00:00Added an answer on May 17, 2026 at 1:23 am

    Finally i did get it to work with the solution described in the link http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html and thanks to brian brinley

    Added a Content Editor Web Part to the page where the document list is added.
    Put in the source code downloaded from: http://pathtosharepoint.com/Downloads/

    -> Topic: HTML Calculated Columns -> TextToHTML-V2.1.1 – (Full version)

    The CEWP should be places underneath the Document Library, then add a column to the library (a simple text column), and add the following text to that column:

    <DIV><a href="javascript:createNewDocumentWithProgID('[http template path]'
    , '[http: default same location]', 'SharePoint.OpenDocuments', 
    false)">New document</a></DIV>
    

    And you will get a link named New document, that opens new document based on the template.

    Disadvantage 1:
    I think this can be made better by using a calculated field, but I did not get the URL of the current document into a calculated field.

    Disadvantage 2:
    The new column is not also a property of the document. When opening a Word 2010 template this way, the ‘Document Properties – Server’ bar is shown and you can alter the content of the field that contains the text

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.