- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2021 04:45 AM
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
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 11:15 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2021 07:07 AM
Please check, is there any onload client script on this view "resolve_dialog_form_view" to hide UI actions. If yes, then modify your script to include your new UI actions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2021 02:01 AM
I'm using the OOB version.
I checked the onLoad client scripts, and found this one - Modals for Problem state transition. I added my view in the condition, as there is a section that hides some buttons :
if(view === "assess_dialog_form_view" || view === "start_fix_dialog_form_view" || view === "mark_duplicate_dialog_form_view" || view === "cancel_dialog_form_view" || view === "accept_risk_dialog_form_view" || view === "resolve_dialog_form_view")
{
.....
var buttonsArray = $j(".form_action_button:not(#sysverb_modal_ok_bottom,#sysverb_modal_cancel_bottom)");
for(var i = 0; i < buttonsArray.length; i++) {
buttonsArray[i].style.display = 'none';
}
....
}
I changed the browser, delete cache, but still the buttons are not visible.
Thanks,
Adina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2021 02:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2021 02:08 AM
On the other forms I can see the correct id button (sysverb_modal_ok_bottom), but on this form - resolve_dialog_form_view - I can see only the Submit button, with hidden true.