how to add message to the screen using g_modal

Alon Grod
Tera Expert

Hi,

How can I add message to the screen using g_modal but not g_modal.alert.

10 REPLIES 10

@Alon Grod 

if you use g_modal API then box will come

that's OOTB

💡 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

SohamTipnis
Tera Expert

Hi @Alon Grod ,

Yes you can add the g_modal it should work like ,

g_modal.alert("Are you sure?");

This is an simple example you can try.

 

If my response helps you, please mark it as Helpful/Correct😊 

 

Regards,

Soham Tipnis

ServiceNow Developer ||  Techincal Consultant

adityahubli
Giga Guru

Hello @Alon Grod ,

There are multiple methods to show message on screen using GlideModal(g_modal) you can refer following documentation link.

 

https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/app-store/dev_portal/API_reference/... 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya,

Technical Consultant

Ankur Bawiskar
Tera Patron

@Alon Grod 

see if this helps

Why addInfoMessage / addErrorMessage Don't Work in Custom Workspaces – and How to Fix It 

💡 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

@Alon Grod 

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