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

prasannakumard
Tera Guru

Hi Team,

I'm new to Service portal. We have requirement like as follows:

In catalog form, If we fill all the fields and Submit the form, we need to show "Thank you" Pop up Model Message. If clicks on OK button it redirects to another page.

How can we achieve this in service portal. Where we need to write Submit button onclick functionality in service portal.

Please help on the same.

Thanks & Regards,

Prasanna Kumar

1 ACCEPTED SOLUTION

prasannakumard
Tera Guru

Thank you Sateesh Kumar,

I've fixed the issue/requirement with the following onSubmit script:

if (typeof spModal != 'undefined') {
spModal.open({
widget: 'wd-kb-article-popup',
widgetInput: {'sys_id': '5c08911d37f4af40548b53b543990ec2'},
title: 'SDS-China Submission',
buttons: [
{label:'OK', primary: true}
]
}).then(function(){
location.href="/sp?id=view_my_sds_tickets";
});
}

Now, after submit the page one popup is appear and we get the popup content from KB knowledge article and after clicking ok button, it redirects to another portal page.

Thanks & Regards,

Prasanna Kumar

View solution in original post

5 REPLIES 5

Hi,

after submission, the popup disappeared after 1 second, and the page redirects to the ticket form.

How did you manage to stop the redirection?