- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 10:29 AM
I'd like to have a dialog with full form functionality (reference fields, dependant fields, everything).
GlideModalForm, I figured, is the only way to go.
but I would like to display the dialog in a different view, a stripped down version, of the actual form.
Is this possible? On the dialog I did not find anything.
What I could imagine though: is finding the current form on the list, setting my desired form, do my stuff, set the form on the list back to what it was before
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 11:25 PM
You can use the addParm method to set the view using the sysparm_view parameter
var gp = new GlideModalForm("TITLE", "TABLE", callbackFunction);
gp.addParm('sysparm_view', "VIEWNAME");
gp.render();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:53 AM
I checked here: https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/
he uses exactly your approach, so I changed from GlideModalForm to GlideDialogForm.
Same result, view is not being changed.
but I found the solution here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 11:50 PM
what's the actual business requirement?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:02 AM
update multiple records, but, by only providing a view with certain fields, prevent every field to be updated on selected records. I want to be able to restrict, via the used "view", which fields can be updated on selected records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:49 AM
why not use the update selected capability which is available OOB on the table list?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 04:57 AM
as I said: We only want to allow "normal" users certain fields to be updated, not all of them.
But those we do should have full form functionality.
I solved it, see above!