The CreatorCon Call for Content is officially open! Get started here.

OK and Cancel buttons on pop-up - Resolve dialog form view

adinad
Tera Guru

Hi,

In problem workflow, I edited the form "Resolve dialog form view" and want to be displayed as pop-up on "Resolve" button. 

I edited the UI Action - Resolve, with the script:

--------------

function onResolve() {

var tableName = 'problem';
var sysID = g_form.getValue('sys_id'); // sys_id of the record you want to show

//Create and open the dialog form
var dialog = new GlideDialogForm('Resolve', tableName);
dialog.setSysID(sysID); //Pass in sys_id to edit existing record,
dialog.addParm('sysparm_view', 'resolve_dialog_form_view'); //Specify a form view
dialog.render();

}

--------------

The correct pop-up is displayed, but are missing Ok and Cancel buttons.

I edited also, in the Ok and Cancel buttons, in list - UI Action Visibility - to include the view "Resolve..", but still, the buttons are missing on the pop-up.

Am I missing something?

Thanks,

Adina

1 ACCEPTED SOLUTION

adinad
Tera Guru

After I created a dedicated client script for the resolve view and field "

 

The client script - Modals for Problem state transition - didn't impacted in any way the other views.

View solution in original post

22 REPLIES 22

adinad
Tera Guru

After I created a dedicated client script for the resolve view and field "

 

The client script - Modals for Problem state transition - didn't impacted in any way the other views.

That is great to hear @adinad . 

If your query is resolved, please mark the answer as correct and close this thread for others.


Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

adinad
Tera Guru

 

The client script - Modals for Problem state transition - didn't impacted in any way the other views.