SharePoint Online: Set Default Value for Multiple lines of text Field

Requirement: Set default value for multiple lines of text field in SharePoint Online.

How to set the default value for a multi-line text field?

The multiple lines of text field doesn’t support “default” value through the web user interface. However, here is the trick to set the default value for multiple lines of text column.

  1. Open the SharePoint Online site in SharePoint designer.
  2. Navigate to your target list Click on the “Edit list columns” link under “Customization”
  3. Double-click on the multi-line text column of the list. In the “column editor” dialog box, you can set the default value for the column!
    set default value for multiple lines of text column in sharepoint online

PnP PowerShell to Set default value for Multi-Line text column:

To set the default value for multiple lines of text field in SharePoint Online, use this PowerShell:

#Parameters
$SiteURL = "https://crescent.sharepoint.com/sites/pmo"
$ListName = "Projects"
$ColumnName = "Project_x0020_Description" #Internal Name
$DefaultValue = "Project Code: <<Enter the Project code >>, Project description: <<provide a detailed project description>>"

#Connect to Tenant Admin
Connect-PnPOnline $SiteURL -Interactive

#Set Default Value for the field
Set-PnPField -Identity $ColumnName -List $ListName -Values @{DefaultValue=$DefaultValue}

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

One thought on “SharePoint Online: Set Default Value for Multiple lines of text Field

  • Hi, I’ve tried both ways but it always seems to join the default text up in one line no matter what I do, does this still function this way, or need anything else doing to get it to work?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *