Modify Display Height of Read Only HTML Variable on Catalog Item

Shawn Dowler
Tera Guru

What is the recommended way to modify the height of the box of a read-only HTML variable on the Catalog Item form? I would like to avoid having to create tons of UI Macros just to add a single line of rich text in the middle of forms.

33 REPLIES 33

Mark Stanger
Giga Sage

You may need to post a screenshot of what you're seeing, but my guess is that you need to apply your role restriction to the 'Create roles' field.   That should make the HTML variable read only and just display the HTML contents rather than the full editor.


I don't think I was very clear and I I should have included a screenshot. We have the variable set as read only so the formatting bar isn't there. The issue is that the height of the box is much larger than the text it contains and I am trying to make the height smaller.



Screen Shot 2014-09-03 at 9.34.20 AM.png


Have you tested this in multiple browsers?   Have you checked the underlying HTML to make sure it isn't including extra spaces or formatting?   When I try this in a ServiceNow demo environment using Chrome it collapses down nicely without any additional configuration.   I've used HTML variables in this way many times without issue.


I'm having the same issue in both Chrome and IE10. The HTML variable set to read only displays with a lot of space after it. I've checked the html code too and it looks fine.