How to add a block or gap within a container
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
In a catalogue item, I've got the following container:
However, what I've noticed is that for the New URL Status question, if I select Disposed, it messes up the alignment:
I was just wondering if there is a way I could create some sort of block or gap that would help fill out the container so that when Disposed is selected for the New URL Status question, then the Current Owner and New Owner, and Current Provider and New Provider questions are re-aligned again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi there!
You could use a break/spacer variable, but honestly I wouldn’t recommend it here.
What you’re seeing is expected—when fields get hidden (like when “Disposed” is selected), ServiceNow doesn’t reflow the layout in the container.
Best approach:
- Fix the container structure, not the spacing
- Group related fields so they show/hide together
Rule of thumb: if you’re adding spacers to fix alignment, the layout probably needs to be adjusted instead.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @alexalejandro Thanks. How do I group related fields together?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
@matthew_hughes Great question.
Easiest way is to group them in the same container (Catalog Builder or classic view—either works). So you’d:
- Put the related fields (e.g., Owner + Provider pairs) inside the same container
- Then control that group together with your UI Policy
That way they show/hide as a unit and you avoid the alignment gaps you’re seeing.
If they’re split across columns/containers, that’s when things start to break visually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
