
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2018 12:54 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2018 07:25 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2018 12:50 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2018 07:25 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2020 05:31 AM
I have a newbie question. Where did you put the OnSubmit script? I thought we weren't allowed to use Catalog Client Scripts. I can't really think of another place where you'd put a script for an item. BTW: was it a catalog item or a record producer?
Thanks,
Richelle

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 09:00 AM
Yes, It's a record producer/catalog item, where ever you required you can add this script in catalog client script only. It works for me.