Change the default "size" / height of HTML field on form

Shane Butler
Tera Guru

Hi Community,

We have an issue on our Change Request form where we have introduced a custom field (HTML type) and when the form loads, the HTML field needs to be expanded to show all of the content in the "default" value.

Any Guru able to shed some light on how to adjust the default size / height of the HTML form field so the content shows?
I am aware of the user options 1 and 2 below once the form loads - however I am chasing a more permanent fix for all users rather than a record by record once it is loaded.

Would appreciate any assistance / guidance 😄

find_real_file.png

11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

see if this helps

Automatically adjust the height of text area to fit contents

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mukul-Service S
Tera Contributor

Configure Dictionary for the HTML field

Click Advance View

Set Attribute as "editor.height=250"

Update and reload form

Thanks. This worked for me to resize the rich description field in the HR Case form.

Akhila8
Mega Expert

Create a record in sys_ui_style Table for rich_description field (here the HTML field is rich_description) with style as "height:100%". It worked both for active and inactive cases. Thank You.