Skip to main content

Hi,

 

I have an expression on a Data lable which has some text in it, followed by a Hyperlink control, then some more text

 

The Data label displays ok, but the Hyperlink is GREEN and underlined. I changed the colour to BLUE on the Hyperlink itself, but when you use the Hyerlink within an expression it go back to Green (green being the default K2 colour)

 

Is there a way of formatting the Hperlink within the Expression? Can you add HTML within the Expression on the Smartform Data Label expression?

 

Thanks

Hi,

 

Use some thing like below expression to your datalabel and set Literal to True.

 

<a href="https://www.w3schools.com" style="color:blue">Visit W3Schools</a>

 

Let me know if it helps.

 

Regards,

Vijay.


Thanks V Jay,

 

I managed to change the colour using Javascript and then adding it an expression


Reply