Skip to content

Commit 0a68c82

Browse files
authored
Create uiaction.js
1 parent 74d01c8 commit 0a68c82

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
This script should be placed in the UI action on the table kb_knowledge form view.
3+
This UI action should be marked as client.
4+
Use validateLinksInArticle() function in the Onclick field.
5+
*/
6+
7+
function validateLinksInArticle() {
8+
var articleSysId = g_form.getUniqueValue();
9+
var gdw = new GlideDialogWindow('validate_links_dialog');
10+
gdw.setTitle('Validate Article Links');
11+
gdw.setPreference('sysparm_article_id', articleSysId);
12+
gdw.render();
13+
}

0 commit comments

Comments
 (0)