Skip to main content
Nintex Community Menu Bar

Ignore theme and use html set colour for hyperlink in expression?

  • June 11, 2020
  • 4 replies
  • 71 views

Forum|alt.badge.img+16

Hi,

 

Got an expression on a data label, with CONCAT (some text and a Hyperlink) - the Hyperlink is a mailto:email link

 

On the form, when you click the hyperlink, it goes from blue to that horrible K2 neon green, i want to change it to remain dark blue.

I've tried to change it using HTML <font color> tag, but that doens't work.

 

I suspect the Platinum theme is over-riding the HTML font tag i enter.

 

Is there any way of over-riding the theme, so the expression uses my colour for the Hyperlink link and after colour?

 

Thanks

4 replies

  • June 12, 2020

Hello  @Sharpharp1 


 













Forum|alt.badge.img+16
  • Author
  • Scout
  • June 12, 2020

Hi Michelle,

 

Thanks for your reply, I already tried that before posting, the theme still takes precendence over the code in the espression.


Forum|alt.badge.img+12
  • June 15, 2020

Hello,

I was able to set a custom style for a hyperlink in a form using the following:

1. Two data labels:
DataLabel - with the following expression:


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


DataLabel1 - with the following expression:


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


2. On both data labels, make sure to check Literal and uncheck Prevent XSS.


When you run this, the form will show the style applied on the text 'K2':





Hope this helps.


 


 


Forum|alt.badge.img+16
  • Author
  • Scout
  • June 15, 2020

thanks will have a look