save URL as Hyperlink in a Variable

GD11
Tera Expert

i have variable of type URL in which we are putting urls like 'www.google.com' we want to convert that URL in hyperlink in native UI and workspace so that if someone clicks on it it would open in new tab

2 REPLIES 2

Murthy Ch
Giga Sage

Hey @GD11 

If there is any URL with starts with "www." it will append with your instance URL.

So, try something like below in UI policy with out any condition in it:

function onCondition() {
    var url = g_form.getValue('url'); // Get the value of the URL variable
    if (url) {
        g_form.setValue('url', 'https://' + url);
    }
}

Hope it works:)

Thanks,
Murthy

Amit Verma
Kilo Patron
Kilo Patron

Hi @GD11 

 

Suppose I have configured a URL field on the Incident table as shown below :

AmitVerma_0-1727669309148.png

Now on the native UI, if I provide a URL to the field, it will create a hyperlink to that which will open in new tab as shown below. Note that it can only take a single URL per field.

AmitVerma_1-1727669398615.png

In Service Operations Workspace as well, it creates a hyperlink which opens in new tab.

AmitVerma_2-1727670682937.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.