Show Hierarchical Selection in a Table Form Field using a Custom Widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2025 05:04 AM
Requirement:
I have a table (Table A) with a parent-child relationship and need to allow multi-selection in another table (Table B).
Users should be able to select records hierarchically, with checkboxes at each level (selecting a parent auto-selects all children).
Approach & Issue:
A List reference field doesn’t support multi-selection in a hierarchical format.
I built a Service Portal Widget to display the hierarchy correctly with checkboxes.
Now, I need the widget to open in a modal when a user clicks a field in Table B’s form, and upon selection, store the values as a comma-separated string.
However, I can’t get the widget to open properly in a modal—it either doesn't load or shows "Page Not Found."
Need Help With:
How to open the widget in a modal when clicking a form field?
How to pass selected values back into the field?
Any better approach to achieve this in ServiceNow?
Any guidance is appreciated. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2025 03:16 AM
I was able to do it via UI micros and GlideAjax Script Include.