How do you pass field values to a GlideModal window?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 10:22 AM
I'm using GlideModal to generate a popup window to load a form. I need to preset one of the fields (parent) to the sys_id of the form that generated the popup.
I tried using setPreference('field', value) but that isn't setting the field and I don't see anything noted in the API documentation on how to do this.
var dialog = new GlideModal('incident');
dialog.setSize('500');
dialog.setPreference('parent',g_form.getUniqueValue());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2020 10:30 AM
Hi,
Could you please have a look on the below thread, this might be the one which you are looking for.
Kindly mark my answer as Correct and Helpful Based on the Impact.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 06:45 AM
dialog.setPreference('sysparm_query', 'parent=' +g_form.getUniqueValue());