- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 10:03 PM
HI Team,
I have created a Ui action button i need to redirect to the URL if user clicks on the UI action button. Can anyone help me in the script i have used below script but it is not working sharing screen shot for reference
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 10:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 10:30 PM
Hello @Shabbir1 ,
Add function in the onclick field and add following code :
function redirect(){
top.window.location = "/problem.do?sys_id=-1"; // add your link here
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 10:30 PM - edited 06-23-2024 10:31 PM
Hi @Shabbir1 ,
You can use action.setRedirectURL('URL'); in the ui Script,
Or
You can write something like below,
Note : select client and fill onClick as function name ,
function openUrl() {
var redirect = 'url';
top.location = redirect;
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang