link list description length

I'm using a link list for my site, and users can enter in a paragraph in the description field.  Is there a way to limit that field to 20 characters or so, so its not wrapping when its displayed on the page?

In some of the OOTB lists, I can specify the length, but not in the links list.

November 8th, 2013 6:24pm

Hi CS, you can limit the characters if you have your field set up as single line of text, not multiple lines.
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2013 10:40pm

Hi,

We can use jQuery to achieve it, we can do as follows:

1. Click New link button.

2. On the NewForm page, add a content edit web part on the page.

3. Edit the web part and insert the code below into it.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script><script type="text/javascript">

    $(document).ready(function () {

        $("input[title='Description']").attr("maxlength",20);

    });

</script>

Thanks.

November 11th, 2013 3:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics