Limitation: Unable to style portions of bound text differently

Hi WeWeb team,

I’ve encountered a significant limitation that affects dynamic text display in WeWeb. Currently, it’s impossible to apply different styling to specific portions of text when that text includes bound/dynamic values.

For example, if you have a text block like:
“As discussed, we do have a [dynamic value] hour minimum that is associated with all labor-related services”

And you want the dynamic value portion to be styled differently (different color, weight, etc.) while maintaining natural text flow, this is currently impossible in WeWeb.

Current limitations:

  • Can’t style portions of bound text differently
  • Multiple text elements don’t flow naturally when combined
  • No way to maintain both dynamic values and different styling within the same text flow

This creates challenges when trying to highlight important dynamic information within a larger text block, particularly for:

  • Legal disclaimers with dynamic values
  • Terms & conditions with variable elements
  • Price quotes with highlighted amounts
  • Service agreements with variable terms

Feature Request:
Please consider adding the ability to style portions of text differently while maintaining both:

  1. Dynamic value binding
  2. Natural text flow

This would significantly improve WeWeb’s capabilities for creating professional, legally-compliant documents and user interfaces.

Has anyone else encountered this limitation? How are you working around it?

While not the most elegant solution you can actually do it through HTML. Like this in normal formula:


Result:
image

for illustration obviously you will put your variable instead of the “-10%”. you can also use the color as your library color variable too so you dont have to be static.

I end up creating a function that returns my text because the formula formatting got a bit too crazy trying to compare multiple values to color it red of green.

It will be nice if the formula window can be formatted more like text editor because with multiple if’s it get a bit crazy :slight_smile:

1 Like

Thank you! Yeah that’s my problem. These are like dynamic values within paragraphs, and the binding is going to look insane and unwieldy.

Thank you for the workaround though. This is definitely still something that should be addressed by the WeWeb team. Hopefully they will see this and address it!

You can create an action and make it much simpler. I’ve been using this because otherwise formatting in-line gets complicated. You can create formula that takes the string and adds the html then returns it. Then your function will just look like more like "text part 1 " + Format Value(“value”) + “text part 2”… etc

1 Like