Add URL on comments

akin9
Tera Contributor

Hello Experts 

My URL= https://www.servicenow.com.

We want to add URL on below Comments after "successfully line " but it needs to be clickable.

Please support to achieve this

 

current.comments = "Access granted to "+current.variables.requested_for.name+ " successfully. you will have access on";
if (workflow.scratchpad.closedSkippedIncomplete==true){
current.state=4;
}
else{
current.state=3;
}

 

 

Thank you

1 ACCEPTED SOLUTION

set system property glide.ui.security.allow_codetag to true

 

Please mark if answer is correct

View solution in original post

16 REPLIES 16

Hi @akin9 ,

 

With the code, I shared before I am able to see the URL.

reshmapatil_1-1671711198222.png

 

reshmapatil_0-1671711157731.png

 

Try this:

var url = '[code]<a href="https://www.servicenow.com" target="_blank">ServiceNow</a>[/code]';

or

var url = [code]<a href="https://www.servicenow.com" target="_blank">ServiceNow</a>[/code];

current.comments = "Access granted to "+current.variables.requested_for.name+ " successfully. "+url+" you will have access on";

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

Hi @reshmapatil 

 

I have tried this but not a clickable link same as per old.

 var url = '[code]<a href="https://www.servicenow.com" target="_blank">ServiceNow</a>[/code]';

 

 

and second one is getting error

 

akin9_0-1671711351038.png

 

 

Plesae check and support

Hi @akin9 ,

 

Where are you adding this code(client script,BR etc)?

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**

 

@reshmapatil 

 

adding on Workflow.

akin9
Tera Contributor

Hi @reshmapatil 

 

Please support on this.