How to set URL within javascript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:35 AM
Hi,
I have a URL type field and I would like to set knowledge base article.
For example, I would like to show as per following KB012345
How do I achieve this using javascript within Workflow?
I have the following script
var instance = gs.getProperty('glide.servlet.uri');
var kbnumber = 'KB001234';
var kburl = instance + "kb_view.do?sysparm_article=" + kbnumber;
<a href="kburl" target="_blank">KB001234</a>
Labels:
- Labels:
-
Workflow
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 05:03 PM
Hi Janos, thanks for the help. It seems complicated for what its worth. I'll just tell them it can't be done haha. Also, the url would be only seen by support staff.
It would be a problem if and when they need to edit the URL unless I made the field read only.