We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

amolpawar
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

3 REPLIES 3

Chaitanya ILCR
Giga Patron
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
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: ...

Ankur Bawiskar
Tera Patron

@amolpawar 

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@amolpawar 

Hope you are doing good.

Did my reply answer your question?

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader