- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:11 AM
Hello everyone! I am creating an app for educational purposes. After several searches over the last few years, I have not been able to find the solution.
When I click on the Submit button, I would like it to open a warning message like "Your request has been submitted successfully" and return to the home page.
Can anyone help me and teach me how to do this?
Thank you very much!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:21 AM - edited 08-08-2024 10:10 AM
@PhFranca you can write a catalog client script for this. :
function onSubmit() {
alert("Your request has been submitted successfully");
top.window.location= '/sp';
}
…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution ✅!! If this helps you to understand.
…………………………………………........................................................................................

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:47 AM
Hi @PhFranca
Seems like you built a catalog item,
The easy way to so this, Write a onsubmit catalog client scrript and add below logic
Replace with your portal if its different.
Output:
Redirect to home page:
Hope this helps!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:21 AM - edited 08-08-2024 10:10 AM
@PhFranca you can write a catalog client script for this. :
function onSubmit() {
alert("Your request has been submitted successfully");
top.window.location= '/sp';
}
…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution ✅!! If this helps you to understand.
…………………………………………........................................................................................

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:47 AM
Hi @PhFranca
Seems like you built a catalog item,
The easy way to so this, Write a onsubmit catalog client scrript and add below logic
Replace with your portal if its different.
Output:
Redirect to home page:
Hope this helps!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 10:07 AM
@Hemanth M1 !
Thank you very much! It worked great!
Phlavio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 09:48 AM
Hello, @Satishkumar B
I think I'm doing something wrong. It still doesn't work. Can you help me understand?
Attached is the form in which I created the catalog client script.
Thanks
Phlavio