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

  • 11 June 2020
  • 4 replies
  • 33 views

Userlevel 3
Badge +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

Hello  @Sharpharp1 


 












Userlevel 3
Badge +16

Hi Michelle,

 

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

Badge +12

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.


 


 

Userlevel 3
Badge +16

thanks will have a look

Reply