How to set URL within javascript

Kifrez
Kilo Guru

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
find_real_file.png

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>
10 REPLIES 10

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.