- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 03:10 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2023 02:40 AM
set system property glide.ui.security.allow_codetag to true
Please mark if answer is correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 04:03 AM - edited 12-22-2022 04:13 AM
Hi @akin9 ,
With the code, I shared before I am able to see the URL.
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**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 04:17 AM
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
Plesae check and support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 04:22 AM
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**
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 05:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2022 08:07 PM