how to display simple alert pop up mesage with ok button on record producer.

Shilpi Sharma2
Tera Contributor

HI all,

I want to display a pop up message with ok  button if any feedback is pending while raising new incident. Please help

11 REPLIES 11

Geetanjali Khy2
Mega Guru

Hi Shilpi,

Please refer below link, it might help you.

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

 

Kindly mark the answer as Correct and Helpful if this answers your question.

Thank You.

 

Regards,

Geetanjali Khyale

For this you need to do some jelly scripting.

Simply create the UI page and pop-up  will work.

 

This is just for reference for UI Page:

 

 HTML

 

<?xml version="1.0" encoding="utf-8" ?>

<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<script>alert("Your request has been submitted. \n\nThe Service Desk will contact you if they need any further information.");</script>

</j:jelly>


 

Client script:

 location.href = "home.do"


 Kindly mark the answer as Correct and Helpful if this answers your question.

Thank You.



Regards,

Geetanjali Khyale

Hi Geetanjali,

thanx for your help but I want to display pop up on Page load with ok and cancel button on record producer

Sagar Pagar
Tera Patron

Hello,

 

Write a on-submit catalog client script as,

 

function onSubmit() {
   //Type appropriate comment here, and begin script below
   alert("alert message");
}

 

Regards,
Sagar Pagar

The world works with ServiceNow