Page 1 of 1

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

Posted: 26 Mar 2015
by Sebastian Haugland
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.

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

Posted: 27 Mar 2015
by Dmitry Kozlov
Hi,

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

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

Posted: 27 Mar 2015
by Sebastian Haugland
Hi

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

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

Posted: 30 Mar 2015
by Dmitry Kozlov
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;
}

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

Posted: 30 Mar 2015
by Sebastian Haugland
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).

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

Posted: 01 Apr 2015
by Dmitry Kozlov
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);