- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 07:46 AM
Hello everyone,
How can I create a new record using a ui action calling a ui page? this is what I have so far:
1. ui action
2.ui page ( thank you to https://community.servicenow.com/community?id=community_article&sys_id=bb0e039fdb9b1054b1b102d5ca961942)
What I'm having problems now is, how can users click on the UI action, see the pop up window (ui page), add the information requested, click on Submit and create a new record with the information from provided?
Thank you
Solved! Go to Solution.
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 08:53 AM
Ok let me give you Quick Demo here.
This is what i have built. See if this help you or not.
Note: if the intent is to create child task from ui page button click then use inside ui page client script . like i have done.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 07:52 AM
You have to use glide record inside the ui page client script
eg:
var gr = new GlideRecord('table name');
gr.initialize();
gr.description= description;
gr.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 08:26 AM
Thank you Harshvardhan,
as for the script in the UI action, how do I need to modify it so that when users click on the button, the pop up window shows?
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 08:28 AM
You are saying you want to update the record where user click on popup button ?
Can you add some screenshot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2021 08:33 AM
Sure, what I need is that when users click on the Button this is what needs to happen:
1.User clicks on the button
2. pop up window comes up
3.User updates the info and clicks on "Submit":
4. A new record is created, a child task from the RITM
thank you