Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

URL using spModal

addyclemm
Tera Contributor

Am using spModal and am inserting a link as a variable as:

var url = '<br><a href = "https://xxxxxx.service-now.com/hrlportal?id=sc_cat_item&sys_id=XXXXXX&sysparm_category=XXXXXX">General Question.</a>';

 spModal.open({
  title: name,
  message: 'To submit a regarding a leave question, please submit a ' + url,
  width: 500,
  backdrop: 'static',
  buttons: [{
    label: 'OK',
    primary: true
  },

  ],
});

 

It works just fine.  Can the link color be changed in the variable string?  It turns blue but it isn't very noticeable.

Thank you in advance.

 

2 REPLIES 2

AnirudhKumar
Mega Sage

Did you try this :

<a style="color:red" href = "https://xxxxxx.service-now.com/hrlportal?id=sc_cat_item&sys_id=XXXXXX&sysparm_category=XXXXXX">General Question.</a>

I did.  The color didn't change.