The CreatorCon Call for Content is officially open! Get started here.

Confirmation Dialog box - No alert - client script

Khanna Ji
Tera Guru

Hi All,

I have a catalog client script in which I am making Ajax calls to the Script Include. That script includes checks some data in the tables and returns the output to the client script. Now in the catalog client script, I have to show that response as a message box in the Service Portal.

I am able to show it as an alert statement but it looks really dirty. How can I generate a message box and show the content in it?

I found an article but I am not sure how to use them in client script - Link Here

Thank you, appreciate your response.

20 REPLIES 20

Is it in the middle of the screen?

Regards

Yash Agrawal

You can also set addInforMessege() which look like below,

find_real_file.png

It will visible on top of the  Portal screen.

Regards

Yash Agrawal

No, I don't want to use addInfoMessage. Also I think it will not work in catalog client scripts.

Yes, you are writing,But we can call SI and show the message that is not challenging.

So, now will you please check the links that I shared.

It may help you

Regards,

Yash Agrawal

 

Yash Agrawal1
Tera Guru

Hello,

I found some link which on community which may answer your question,

https://community.servicenow.com/community?id=community_question&sys_id=d6df3d9ddb38e3c054250b55ca96...

https://community.servicenow.com/community?id=community_question&sys_id=5a0240dcdbd257004e1df4621f96...

https://community.servicenow.com/community?id=community_question&sys_id=e5920b21dbd8dbc01dcaf3231f96...

Please Mark it helpful/correct if my answer helps in any way to resolve your query.
Reach out to me if any more help required.

Regards

Yash.K.Agrawal