How to avoid DOM manipulation in UI action

Roshini
Giga Guru

Hi Team,
For the below code am getting DOM manipulation warning in update set scanning.
Am trying to call a view via the glideDialogForm, is there any alternations can be done for fixing the dom manipulation error.


function onHoldAction() {

     var sysid = g_form.getUniqueValue();
    var dialog = new GlideDialogForm('ON Hold', 'incident'); //Provide dialog title and table name
    dialog.setSysID(sysid);
    dialog.addParm('sysparm_view', 'on_hold_dialog_view');
    dialog.addParm('sysparm_form_only', 'true');
    dialog.render(); //Open the dialog
}
6 REPLIES 6

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Roshini ,

 

What is ur Use Case here. Will u elaborate a bit for us.?

 

Thanks,

Danish

Use case:-
"On Hold" Ui action needs to be present for In progress incidents and once the on hold ui action is clicked a popup should come, which will ask the users to provide on hold reason, due date and few fields according to the selection of on hold reason(eg:- if on hold reason is awaiting change then change request field should be visible).
For achieving this i created a on_hold view and am calling that view inside the Ui action

Hi @Roshini ,

 

If the fields are not too many then u can go with GlideDialogWindow where u can call a UI page & have the fields created over der.

 

Thanks,

Danish