Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
Have you found a solution for your question? –  user15705 Mar 19 '13 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. –  SPArchaeologist Mar 19 '13 at 10:11
add comment

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.

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

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.

share|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 '12 at 18:13
1  
Then you might want to update the question to reflect what you're actually asking for. –  PirateEric Feb 8 '12 at 20:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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