- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 03:27 AM
Hi All,
I have a custom table "Table X" , i have also created a form link UI action "Generate Task". When i click this ui action, a pop up window should come with two fields "Assignee" ref to sys_user table & "Assignment Group" refer to group table.
When user fills the form it should generate a catalog task record. How can i achieve this?
*************************************
Action name : show_dialog_form
Client : true
Onclick : openForm();
*************************************
function openForm() {
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var gDialog = new dialogClass('show_dialog_form');
gDialog.setTitle(new GwtMessage().getMessage('Create Task'));
gDialog.render();
}
how to proceed after this? Do i need to create any UI page for that popup window with those two fields.
Regards,
Sirraj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2020 02:43 AM
Hi,
You can create the task from the processing script of the UI page itself
You cannot get directly the value from Modal to the UI Action Script
Please share the UI page HTML, Client Script and Processing Script you have used
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2020 03:40 AM
You will have to use UI pages for this
refer this link and enhance it as per your need
GlideDialogWindow: Advanced Popups Using UI Pages
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2020 02:28 AM
Hi Ankur,
Step 1 : I have created my UI page, with the help of below thread.
https://community.servicenow.com/community?id=community_article&sys_id=bb0e039fdb9b1054b1b102d5ca961942
am getting the below one which i want.
Step 2 : I have called this UI page in my UI action, please find the below code
line 15 the current record sys_id i want, 16 & 17 i need to get the value from modal popup. After getting all these in the line 19th i will call a script include.
But i am not sure where to use the gsftsubmit to call server side function and to get the modal value. Can you please advise me on the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2020 02:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2020 02:43 AM
Hello Siraj,
If you have used my thread then in your UI page, you will notice a script where you can capture the values submitted in UI page and from there you can do GlideAjax and call SI.
You don't need to do anything in your UI action once the UI page is called.
Mark the comment as helfpul if it helps.