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

Paul Curwen
Giga Sage

Here is an example of how this is done: 

 

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

 

If helpful please mark as Helpful/Correct

 

 

 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Thank you for quick reply!

 

Please check it is correct?

current.comments = "Access granted to "+current.variables.requested_for.name+ " successfully."+[code]<a href=" https://www.servicenow.com/target="_blank">ServiceNow </a>[/code]+"you will have access on";
if (workflow.scratchpad.closedSkippedIncomplete==true){
current.state=4;
}
else{
current.state=3;
}

Hi @akin9 ,

 

Write this code:

current.comments = "Access granted to "+current.variables.requested_for.name+ " successfully. "+'[code]<a href="https://www.servicenow.com" target="_blank">ServiceNow</a>[/code]'+" you will have access on";

 

 

Regards,

Reshma

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

Hello @reshmapatil 

Thank you for reply!

Unfortunately, not as clickable URL please check and support.

 

akin9_1-1671710215557.png