0

I have list with single line of text with values separated by commas. I want to display those valuse in multiple lines.

Example: Stock (Column)
         Google;Microsoft;Apple;

Now I want to display them in separate lines.

Example: Google
         Microsoft
         Apple

Can any one please provide the solution.

2
  • Have you found a solution for your question?
    – user15705
    Mar 19, 2013 at 9:11
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post.
    – SPArcheon
    Mar 19, 2013 at 10:11

2 Answers 2

1

As you cannot really change the lookup column itself, I'd suggest to add to the page a script that will modify the view.

Here is a basic example written with jQuery:

$("td").find("a").each(function(){
    $(this).before("<br/>");
});

what it does is add a line break before each hyperlink.

1
  • Please let us know the outcome.
    – Jussi Palo
    Feb 25, 2012 at 14:35
0

The simplest answer is to convert the single line of text field to a multiline of text field set as plain text. The users can put them on multiple lines and you don't have to worry about scripting or coding any custom displays.

2
  • I am sorry, it is a look up column not a single line of text. I appreciate your response Feb 8, 2012 at 18:13
  • 1
    Then you might want to update the question to reflect what you're actually asking for. Feb 8, 2012 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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