Setting default field values for multi-line text fields in lists?


  • For the multiple lines of text field in a list, I'm using SharePoint Designer 2013 to set a default value for the field, but I need that default value to include rich text formatting (the default value includes a formatted table). Is this possible without having to delve into JavaScript? And if so, how?
    Thursday, June 12, 2014 3:45 PM


All replies

  • Yes, we can :)

    You can do it with powershell

    $web = get-spweb <yourweb>
    $list = $web.lists["<yourList>"]
    $field = $list.fields["<yourField>"]
    $field.DefaultValue = "place your html code here"

    hope that helps

    Thursday, June 12, 2014 4:07 PM
  • Does that still allow data within the table created to be edited when I add a new item to the list?
    Thursday, June 12, 2014 4:49 PM
  • Yes.

    This only sets the default value for that field. The Field still editable

    Friday, June 13, 2014 8:07 AM
  • I can't get this to work with HTML code, only if I use plain text as the default value. Is there a special syntax I need to use for the HTML code?

    Can you give an example of HTML code you have made that works with the above? thanks!

    • Edited by HELKDGS Thursday, July 03, 2014 7:59 AM
    Thursday, July 03, 2014 7:58 AM