How can I create pop up on service portal when a particular catalog item is submitted?

sarahleighton
Tera Contributor

Hi all

 

Can someone guide me on how to create a pop up that appears after submit is pressed on ordering a particular catalog item on the service portal please?

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION

Ratnakar7
Mega Sage
Mega Sage

Hi @sarahleighton ,

 

You can write Catalog Client Script on onSubmit() like below:

Ratnakar7_1-1674131724687.png

 

 

 

Thanks,

Ratnakar

View solution in original post

4 REPLIES 4

Ratnakar7
Mega Sage
Mega Sage

Hi @sarahleighton ,

 

You can write Catalog Client Script on onSubmit() like below:

Ratnakar7_1-1674131724687.png

 

 

 

Thanks,

Ratnakar

Perfect - thank you!

BharathChintala
Mega Sage

@sarahleighton  If just popup where user read it click ok go with @Ratnakar7 script keeping alert

 

If you want pop up with yes or no and when they click no abort submission

then use below

function onSubmit() {

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

      if (confirm == false) {

              return false;

      }

}

 If you want pop up with fields and need to do more logics  create a UI Page and calling it is a best option.

 

Thanks,

Bharath

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Hi, I have a similar requirement. But on submit I wanted to make an API call display the response on the pop up. When the user clicks on ok, the form should be submitted. Any suggestions on how to achieve this. On submit client script doesn't work as the form gets saved before the API calls are processed .

Any leads are highly appreciated