SharePoint wants a multi-line text Type field to be a special type of link

Source: Internet
Author: User

1. Insert the multiline text field in the test list. Names are called content. For example, the following drawings:

2. In the Content field. Join a link. For example, with:

3. Try to enter the notes format link, for example:

4, click OK when. Pop-up message box. For example, with:

5, some people may say, can directly edit the source of multiple lines of text, for example:

6. After clicking Save, use the F12 tool to view the HTML elements, for example:

You can see the href attribute and be dropped by SharePoint format.

7, our solution. When inserting, precede the Notes link with http://, for example,

8. Be able to see the HTML elements of the foreground. Normal but more than http://, in script format out.

9. Format the script with http://, such as the following.

function Formatnoteslink () {    var all = document.getElementsByTagName ("a");      for (var i = 0; i < all.length; i++) {        if (All[i].href.indexof ("http://notes//") = = 0
   
    ) {            = all[i].href.replace ("http://notes//", "notes://"
    );        }     500);
   

10, again with F12 tool view, everything is normal, for example:

11, perhaps some people say. How does the customer know to add http://In front so that we can change the dialog box to insert the link, for example,

12, in detail is to change layouts the following Rtedialog file. For example, with:

Location: C:\Program files\common files\microsoft Shared\Web Server Extensions\15\template\layouts

Changes:

Summary

Of course, this is only in the use of SharePoint process encountered a small problem, encountered when also went to Google a bit, found to rewrite the Ribbon or multi-line text field of the blog, I think it is too complex, think of such a way, suppose there is a need for friends, is a small reference it.

Extrapolate, in addition to notes such a link. A lot of other things can be done by this kind of processing, such as scripts, etc., interested to be able to try it yourself.

All right, here we go, rest.

Now rest.

。。

Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

SharePoint wants a multi-line text Type field to be a special type of link

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.