Adjust the height/width of the body part of Description field

Discussions about Forms Designer for SharePoint 2010.
Locked
User avatar
Sebastian Haugland
Posts: 43
Joined: Fri Sep 19, 2014
Contact:

26 Mar 2015

I want to change the height and width of the Description field to se more lines/text but only manage to adjust the "frame around" not the body itself.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

27 Mar 2015

Hi,

What type of the field you use: Rich Text, Enhanced Rich Text, or Plain Text?

User avatar
Sebastian Haugland
Posts: 43
Joined: Fri Sep 19, 2014
Contact:

27 Mar 2015

Hi

The Description filed is multiline Enhanced rich text (Rich text with pictures, tables, and hyperlinks)

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

30 Mar 2015

Hi,

Please, assign a CSS class to your field, say, 'my-text', and define it in the CSS-editor following way:

Code: Select all

.my-text .ms-rtestate-write {
	min-height: 400px !important;
}

User avatar
Sebastian Haugland
Posts: 43
Joined: Fri Sep 19, 2014
Contact:

30 Mar 2015

Hi

So sorry I was wrong - the Description Field is Rich text (Bold, italics, text alignment, hyperlinks)

Tehn I need a different script than that the above (that did not work).

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

01 Apr 2015

So, please, assign a CSS class to the field ('my-text' in this sample) and insert the following code into the JavaScript editor of Forms Designer:

Code: Select all

$('.my-text iframe.ms-rtelong').attr('height', 200);

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests