Enforce field height

Wade Clairmont
Tera Guru

I have a field on a form that I need to fix the height on.  The information in this field currently expands the 4000 char field and distorts the form layout. 

If there a way to enforce a field height, yet provide scrolling when the field data exceeds the fields height?


Thanks.

3 REPLIES 3

Mohith Devatte
Tera Sage
Tera Sage

Hello @Wade Clairmont which type of field is it ?

You can use field style for it .

Right click on the field name and you can see configure style and click on it

and in the style section enter the code

 height: 100px !important; // Set the height size according to your preference. 

Please mark my answer correct if it helps you

Aman Kumar S
Kilo Patron

For that go to html type field, to have scrollable format,

If you still want string only, you can go with Field style, have a look at below link for ref:

https://community.servicenow.com/community?id=community_question&sys_id=c03b0beddb5cdbc01dcaf3231f96...

Best Regards
Aman Kumar

Harish KM
Kilo Patron
Kilo Patron

Hi use the below in Onload client script

 g_form.getControl('fieldname').style.length = '3000px';

Regards
Harish