- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 07:35 AM
I have a requirement on incident to open pop up form
on that pop up form it should have few fields from another table.
which will submit record with some details from incident and popup on the other table form.
can we do it with Business rule not from ui action.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 09:05 AM - edited 10-18-2022 09:06 AM
Are you saying you want the actual field to display and not just the value? If so I would recommend doing a GlideDialogForm with a custom view that only shows the fields you want it to show. Here is an example of one I did:
var tableName = 'TABLE NAME HERE';
var sysID = g_form.getUniqueValue(); // sys_id of the record you want to show
var dialog = new GlideDialogForm('TEXT HERE', tableName);
dialog.setSysID(sysID); //Pass in sys_id to edit existing record,
dialog.addParm('sysparm_view', 'VIEW NAME HERE'); //Specify a form view
dialog.setDialogHeight(600);
dialog.render();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 09:37 AM
Did you replace the All Caps text in the 3 places I showed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 11:01 AM
yes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 11:17 AM
Oh, this is happening because you are on a new record. Try passing -1 (just hard code it) for the sysID variable.