How to add a pop up form when clicked on UI Action Button

Amol Pawar
Tera Guru

Hi Everyone,

 

I have a requirement like I want to add a pop up form when I click on a custom UI Action button on a form. This should also work on Workspace as well.

Like confirm boxes, let me know if there is anything I can use and start. I would require a text field in that pop up form and a submit and a cancel button on that pop up form.

 

Let me know where can I start in this?

Thanks in advance,

Amol

2 REPLIES 2

Chaitanya ILCR
Mega Patron
Reach out us on +91 6304422358 for complete training!! Explore SERVICENOW UDEMY COURSES -- YOUR RATING IS TRULY APPRECIATED!! SERVICENOW SCRIPTING COURSE: https://www.udemy.com/course/servicenow-scripting-mastery-advanced-development/ SERVICENOW ADMIN COURSE: ...
UI Pages in ServiceNow are a powerful feature that allows developers to create customized user interfaces within the platform. They provide the flexibility to design and tailor user experiences according to specific requirements. With UI Pages, developers can incorporate HTML, CSS, and JavaScript

Ankur Bawiskar
Tera Patron

@Amol Pawar 

to make it work in native you can use UI action which is client side and invoke UI page using GlideModal

for same UI action to work in workspace you need to use workspace client script and use g_modal.showFrame to render same UI page

check this link

How to open a UI Page in a popup window (GlideModal) from Workspace UI Action 

Also there are lot of OOTB UI actions which has similar code, check that

AnkurBawiskar_0-1768898724279.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader