width & height of HTML variable in service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-23-2018 11:32 AM
Hi,
Could somebody suggest me on catalog item we have a field where variable type is HTML, now I Would like to change width & height of that HTML field as well as font.
Thanks
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-23-2018 11:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-17-2021 08:00 AM
Hi,
If anyone still looking to get it done, please write onLoad Client script for Catalog item with below Code.
var form = typeof g_sc_form != "undefined" ? g_sc_form : g_form;
var myControl = form.getControl("VARIABLE_NAME");
myControl.style.height = '100px';
Hope this helps.
If my answer resolves your issue, please mark my answer as ā Correct & ????Helpful based on the validations.
Thank You!
Regards,
Kailash

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-18-2021 04:25 AM
Hi Vibha,
DOM Manipulation is not considered as a best practice for ServiceNow.
Regards,
Ishaan
BR.
Ishaan Shoor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-20-2021 06:56 AM
Hi Vibha,
If the issue has been resolved, please mark the thred as complete with appropriate correct answer.
Thanks,
Kailash