Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 733031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:12:36+00:00 2026-05-14T07:12:36+00:00

Is it possible to programmatically change a multi-line text field to single-line text field

  • 0

Is it possible to programmatically change a “multi-line text field” to “single-line text field” ?

SPFieldMultiLineText field = list.Fields["sample"] as SPFieldMultiLineText;
// how to change the type to 'single line' now ?

Or do I need to create an additional field (with a similiar name) and migrate the content?

Thanks for any help.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:12:36+00:00Added an answer on May 14, 2026 at 7:12 am

    You can change a Note (MultiLineText) field into a Text (SingleLineText) field under certain restrictions.

    • The Note must be in Plain Text format. Rich formatting and FullHtml will not work, and you will receive a non-supported field type change error.
    • If the Note already has a value in it, you should not try this if that text has over 255 characters. This is because the value of the field is retained when you change the type from Note to Text.

    The code is simply as follows. You don’t even need to specify that it is MultiLine.

    SPField field = list.Fields["sample"];
    field.Type = SPFieldType.Text;
    field.Update();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to programmatically push files to a wireless SD card - like
Is it possible to programmatically, or otherwise, increase the width of the Windows console
Is it possible to programmatically either via the win32API (python) or via a command
How is it possible to programmatically select an item in a WPF TreeView ?
Is it possible to to programmatically trigger a postback from server code in ASP.NET?
Is it possible to close an InfoPath form programmatically? I know that it can
Is it possible to gather performance statistics programmatically from inside a WCF application? For
Is it possible at runtime to programmatically check the name of the Thread that
How would it be possible to capture the audio programmatically? I am implementing an
Is it possible to reorder an already generated PDF file programmatically, and using as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.