Pop up box On Submit of catalog item

paradise611
Mega Expert

Hi All,

I need to create a  pop up message on submittal of a service catalog item. I'm using the following script and it does nothing. Please help!

 

function onSubmit() {
alert ("Please submit form 104333");
}

1 ACCEPTED SOLUTION

georgeprad
Mega Expert

You could use something along these lines..

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

 

Sample Script:

function onSubmit() {

      var confirm = confirm("Did you submit form 104333?");

      if (confirm == false) {

              return false;

      }

}

View solution in original post

3 REPLIES 3

georgeprad
Mega Expert

Hi,

I was trying to do this the other day and gave up as I could not find a way. If all you want is to have an info displayed, you could use a confirm popup and get the user to click yes or No. That was the best solution I could find if wanting to do this via onSubmit

Regards

Pradeep

Can you explain to me how you did this?

georgeprad
Mega Expert

You could use something along these lines..

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

 

Sample Script:

function onSubmit() {

      var confirm = confirm("Did you submit form 104333?");

      if (confirm == false) {

              return false;

      }

}