How to close modal window after record producer submitted

dave_edgar
Mega Guru

We are using a modal to submit record producers but after selecting 'Submit' it changes to 'Submitted' and a message appears at the top of the Service Portal but the message only appears for a short while and you don't necessarily see if for long so it causes a bad user experience.  How can i auto close the modal after submit is pressed so they can see the generic, you Incident has been logged message the system presents.

1 ACCEPTED SOLUTION

I'm using the the ootb modal widget.

 

I think i have a solution though not exactly what I wanted.  I wrote a onSubmit script as per this article, I then change the link to go to the user open incidents/request page and added a message to the widget to say thanks for submitting you incident:

How to show Modal Popup message while Submitting a catalog item in Service portal?

 

find_real_file.png

 

View solution in original post

4 REPLIES 4

Josh Virelli
Tera Guru

Hi Dave,

To help solve this, I'm going to need to see the code that's in your widget. It's impossible to guide you without it since this sounds like a custom widget.

Can you please copy and paste the HTML, Client Controller, and Server Script here and I will take a look.

Thanks,

Josh

I'm using the the ootb modal widget.

 

I think i have a solution though not exactly what I wanted.  I wrote a onSubmit script as per this article, I then change the link to go to the user open incidents/request page and added a message to the widget to say thanks for submitting you incident:

How to show Modal Popup message while Submitting a catalog item in Service portal?

 

find_real_file.png

 

Priyanka136
Mega Guru

Hi dave_edgar,

Please refer the below link :-

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

Please mark it Correct or Helpful, if it works based on impact...!!!

Warm Regards,

Priyanka

find_real_file.png

www.dxsherpa.com

thanks for the feedback, I tried this but it didn't appear to work.