Sooner or later like any SharePoint Admin or Power User, you will come across a scenario where the default SharePoint views just won’t do or behave like what you want. If you’ve been using SharePoint for awhile one thing you sure wish you had was the ability to resize columns in a view. In Office 365, your wish has been granted. But in at least SharePoint 2010-2016, it’s not.
This recently came up for a client that requested the same, except this was in a multi-line column instead of a single text column. Others had solved this issue tested for SharePoint 2016 for single-line column in this TechNet forum post but comments noted it didn’t work for multi-line.
Let’s say we have this list here, and we want to expand this Address column:
If we paste in the solution from the post (via Script Editor web part), nothing happens and it doesn’t work. Why? Assuming you get the field name right, the problem lies with the CSS class. The original code applies to this class:
That is the class for single-line text fields, and multi-line text fields use a different class. If we check it with F12 we can see the class we need:
To apply, edit your view page, add a Script Editor web part, open the Snippet Editor, and paste the following:
And voila! Our multi-line text field has been expanded. Just be sure to change the column name, and choose an appropriate width as desired.
Please contact us if you need any help customizing your lists, libraries or anything else branding related. We’re here to help!
The complementary paper includes over 12 years of research, recent survey results, and CRM turnaround success stories.
This 60-second assessment is designed to evaluate your organization's collaboration readiness.
Learn how you rank compared to organizations typically in years 1 to 5 of implementation - and which areas to focus on to improve.
This is a sandbox solution which can be activated per site collection to allow you to easily collect feedback from users into a custom Feedback list.
Whether you are upgrading to SharePoint Online, 2010, 2013 or the latest 2016, this checklist contains everything you need to know for a successful transition.