Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2023 10:13 PM
I am trying to add the " search for duplicates" ui action to the workspace
The button is visible, need help to fix the code
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 01:07 AM
below code fixed this
function onClick(g_form) {
var sd = g_form.getValue('short_description');
var url;
url = "knowledge_home_launcher.do?sysparm_stack=no&query=" + sd;
var win = top.window.open(url, '_blank');
win.focus();
}
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 12:53 AM
Hi,
you might have specified the view for your client scripts as -> workspace
(Refer the example below )
then write your code which would run only for the workspace view
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2023 01:07 AM
below code fixed this
function onClick(g_form) {
var sd = g_form.getValue('short_description');
var url;
url = "knowledge_home_launcher.do?sysparm_stack=no&query=" + sd;
var win = top.window.open(url, '_blank');
win.focus();
}