Announcement

Collapse
No announcement yet.

Conditional formatting of font of fields

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional formatting of font of fields

    Hello Everyone,

    I have a customer table with a field dob (date of birth). From it I calculate the Age of the person.

    How do I make the Age value appear Red and Bold, based on condition (if Age < 18, then the font be Bold and Red)?

  • #2
    If it's on a grid you can apply conditional formatting in the onRecord event (add HTML formatting), e.g.

    Code:
    if ({Age} < 18) {
        {Age} = '<b><font color="red">' . {Age} . '</font></b>';
    }

    Comment

    Working...
    X