How to remove white space from a section separator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 02:36 AM
Hello,
I am hiding/showing fields, respective section separators and annotations through UI policies.
I'm handling fields visibility through Visible column under UI Policy Action and through scripting sometime using setDisplay() method. Annotations are being hidded/displayed using <section_separator_name>.parentNode.style.display = "none"; (or block).
Though the functionality is working but leaving white space when hidden. Please suggest a way to achieve this type of visibility with no white spaces left behind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:16 AM
please share some screenshots
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:17 AM
I doubt you might have to use DOM manipulation for this but please share some screenshots etc
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:39 AM
@Ankur Bawiskar, shared a screenshot from a sample form where a div element can be seen occupying white space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 03:42 AM
I believe DOM is the only way.
Also I believe since you are showing/hiding annotations you might be using DOM already
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader