Skip to content

How to Apply Text Style to Specific Text in a Text Element with Evaluate=True #125

@saukif

Description

@saukif

I have a use case where I need to apply bold formatting to a specific part of a text element, like this:
${DisplayNumber} + str(format_date(${CurrentDate}, 'MM/dd/yyyy'))
I want the CurrentDate to appear in bold, while keeping the rest of the text in normal font.

The issue is that when using Evaluate=True to dynamically evaluate the expression, I can't find a way to apply text formatting directly. Using rich text formatting would prevent me from evaluating the expression as intended.

How can I achieve this? Is there a way to style specific parts of the text while still evaluating it correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions