- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:36 AM
Hi Team,
By saving the form in portal is still staying in the current page. But I need it to redirect to the previous page on saving the form in portal. Anyone know how to achieve it?
Thanks & Regards,
Yesh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:54 AM
Hi Yesh,
Please check thi slink, you will find solution here
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:54 AM
Hi Yesh,
Please check thi slink, you will find solution here
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 01:54 AM
Hi
I have checked the link you have shared, it is for redirecting to specific page. But I want it to redirect to the previous page.
Thanks
Yesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 01:59 AM
You can mention the previous page URL as a specific page. What is the issue you are facing..
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 02:22 AM
Hi Yesh,
You can try below two option in widget client script after your save code
Use location.href = "homepage url"
or
$window.history.back();
In my widget I have redirected to main portal , Please refer below code
if(c.data.userAvailable==false){
sessionStorage.clear();
window.location.href="wsmgmt"; // specify your page name or id
}
Thanks,
Valmik