Multi line text variable should auto size based upon the content - Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2017 10:29 AM
Hi All,
I am working on the Service Portal and the multi line text variable should be auto sized based upon the content.
And i found that we have an article for this and seems to be known issue.
Refer - ServiceNow KB: In Service Portal, a multi-line text field does not resize to display all content whe...
Work around provided is not working.
Steps to reproduce:
1. Create a multi line text variable max length of 4000 characters (variable name - description) on any catalog item and submit the item by providing 1000 characters in the description variable.
2. Open it in Service Portal.
3. It will not show all the content. Please look at the below screenshot.
But still i found another alternate solution like i can set the height of the variable through Page specific CSS.
Please follow the steps where we can change the height of the variable on particular page.
Service Portal -> Service Portal Configuration -> Page Editor -> Select the page to be modified(Form) -> Update the Page Specific CSS with the below code.
Code:
#sp_formfield_IO\3A 8036849adb500300064956f0cf9619fc{
height: 500px !important; //it will displays the variable height with 500px allowing the variable to show 4000 characters
}
}
But if we provide only 100 characters of description it will be like little old the variable size would be big please look at the below screenshot which looks little odd.
I want to set the multi line text variable's height and width(with auto sizing) based upon the content in the variable.
Regards,
Dharani
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2018 06:58 PM
Just ran into this too. Would love to know if/when a viable solution will be presented. My case though is a Catalog Item "Multi Line Text" variable.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2018 07:58 AM
Try adding the attribute "edge_encryption_enabled=true"
Regards
Vinayak