
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2018 12:51 PM
I have made a ui page with a button, which is being used by a service catalog item. UI page is made visible on one of the catalog tasks. On click of button glideajax is call to do some functionality and it is working fine. But the issue is once that activity is complete. page is redirected to a new record catalog task page. How can it be restricted that the page remain at the same catalog task or if not it redirects back to that catalog task.
HTML
<?xml version="1.0" encoding="utf-8" ?><
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<button type="submit" onclick="LaunchAuto();"> Launch Auto</button>
</j:jelly>
Client Script
function LaunchAuto() {
try{
alert('Auto Request has been raised ');
}
catch(err)
{
alert(err);
}
}
No Processing script
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 12:07 PM
I found the issue. I was because of missing type type="button"
<button type="button" onclick="launchAuto();"> Launch Auto</button>
I placed it and it worked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 10:38 AM
tried putting
response.sendRedirect(gs.getSession().getUrlOnStack());
but still it is redirecting to new page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 12:07 PM
I found the issue. I was because of missing type type="button"
<button type="button" onclick="launchAuto();"> Launch Auto</button>
I placed it and it worked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2018 10:52 PM
Good news, please mark your answer as correct so that it can help others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2025 11:25 PM
If you use type='button' UI page is not closing in workspace