Creating a link to a record in an email

paradise624
Tera Contributor

Hi All,

 

I need some assistance, I am creating a link in an email that says the following. 

 

Your request has been denied. Please click here to view request. When you click here, it link to the record.

 

However I'm having issues. I've created this email script but instead of the word "here" being clickable. The entire sentence is clickable. I only want the word and not the entire sentence clickable. Here is my script below. 

 

var html = '<a href="' + gs.getProperty('glide.servlet.uri') + '/x_release_form.do?sys_id='+current.sys_id + '"> Your request have been denied, click here to go to current record </a>' ;

 

It's coming out like this "Your request has been denied, click here to go to current record"

 

It should look like this, " Your request has been denied, click here to go to current record"

1 ACCEPTED SOLUTION

ronprice
Giga Guru

You just need to restructure your HTML a little bit.  The text inside the <a href></a> should only have the word here.  See below.  Please mark as Helpful/Correct if this helped you resolve your issue.

 

var html= '<p>Your request has been denied, click <a href="' + gs.getProperty('glide.servlet.uri') + 'x_release_form.do?sys_id='+current.sys_id + '">here</a> to go to current record </p>' ;

View solution in original post

2 REPLIES 2

ronprice
Giga Guru

You just need to restructure your HTML a little bit.  The text inside the <a href></a> should only have the word here.  See below.  Please mark as Helpful/Correct if this helped you resolve your issue.

 

var html= '<p>Your request has been denied, click <a href="' + gs.getProperty('glide.servlet.uri') + 'x_release_form.do?sys_id='+current.sys_id + '">here</a> to go to current record </p>' ;

paradise624
Tera Contributor

Thanks ronprice! That solution worked.