Jump to content
  • How to use the conditional HTML expression for change the font fore color or any HTML formatting.


    parasaniasandip
    • Product: Jaspersoft® Studio
     

    Change the Field font color with conditional html expression.

     

    set Field property - Markup = "html"

     

    Right click on Field and click on Edit , and write expression (GROVY)

     

    $F{field_name}.trim() == "UNBEARABLE" ? "<font color=red>" + $F{field_name} + "</font>" : "<font color=green>" + $F{field_name} + "</font>"

     

     

    conditional_color.jpg.0de0ad8394654f65747b381aec6db44b.jpg

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...