How to open pop up form with some field

shweta14
Tera Contributor

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.

 

 

1 ACCEPTED SOLUTION

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();

 

View solution in original post

7 REPLIES 7

Did you replace the All Caps text in the 3 places I showed?

yes

Oh, this is happening because you are on a new record. Try passing -1 (just hard code it) for the sysID variable.