Wednesday, 13 April 2011

Sharepoint 2010 multiline to single line column data type conversion

If you create a Sharepoint list by importing a spreadsheet you will find that in Sharepoint 2010 all free text columns are converted to the multiline data type by default.

This is a problem if you want to filter the multiline columns in a list by clicking on the column heading because column filtering will only work if the column is a single line data type.

So to change a multiline data type column to a single line do this:

1.  Browse to the "List Settings" for the list.

2. Click on the multiline column:


3. Change the Rich Text property to Plain text and press OK. Press OK again when warned:


4. Select the same column again as in step 2.

5. You should now see an option to change the data type to Single line of text. Press OK when done and press OK to the warning:



You can also do this in Sharepoint 2010 Designer but you must first change the Rich text setting to Plain text and save the changes, then change from multiline to single line, click off the column, OK the warning then save again.

11 comments:

  1. This works great but by doing this way, lot of html font tags are prefixed and suffixed to the column data. If anyone has a work around, please let us know.

    thanks

    ReplyDelete
    Replies
    1. I found a workaround to the html font tag issue you noted above. It may not be ideal for some but it worked for me.

      Save your spreadsheet to .TXT format and then import the TXT version into Sharepoint. You will still have to convert from multiline text as described earlier but the text no longer displays with HTML.

      Delete
  2. Just what I was looking for! Thanks much!

    ReplyDelete
  3. Awesome! Just what I needed! Thanks for this post!

    ReplyDelete
  4. Thank you! Worked like a champ...

    ReplyDelete
  5. Thanks!!!! Exactly what I was looking for!

    ReplyDelete
  6. excellent, thanks so much

    ReplyDelete
  7. thank you! This is exactly the help we needed.

    ReplyDelete
  8. Thanks for the tip!

    ReplyDelete
  9. How to chage it to lookup columns ??? please help

    ReplyDelete
    Replies
    1. http://taner-riffat.blogspot.com.au/2011/04/sharepoint-2010-convert-column-type-to.html

      Delete