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.

link|improve this question

27% accept rate
feedback

2 Answers

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.

link|improve this answer
Thanks Christophe, I will give a try to it. – 4uSharePoint Feb 8 at 20:28
Please let us know the outcome. – Jussi Palo Feb 25 at 14:35
feedback

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.

link|improve this answer
I am sorry, it is a look up column not a single line of text. I appreciate your response – 4uSharePoint Feb 8 at 18:13
1  
Then you might want to update the question to reflect what you're actually asking for. – PirateEric Feb 8 at 20:14
feedback

Your Answer

 
or
required, but never shown

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