# Change text through conditional

**URL:** <https://forum.bubble.io/t/change-text-through-conditional/220087>\
**Category:** Need help\
**Created:** [August 15, 2022, 8:50pm UTC](https://forum.bubble.io/t/change-text-through-conditional/220087 "2022-08-15T20:50:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakob1](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jakob1](https://forum.bubble.io/u/Jakob1)\
**Post date:** [August 15, 2022, 8:50pm UTC](https://forum.bubble.io/t/change-text-through-conditional/220087/1 "2022-08-15T20:50:41Z")

</div>

Hi, I want to change the text, when the current page width is less than 760px. But the way I handled it, is apparently wrong, because there is an issue. (see picture at the bottom)  
Does somebody know how to do it?

Best wishes  
Jakob

![image](https://us1.discourse-cdn.com/bubble/original/3X/9/8/98fc96b777c92f41e5cc242ec9f6374538c0e1e5.png)

---

<div class="post-metadata">

**Author:** ![sam.morgan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sam.morgan/32/123576_2.png) [@sam.morgan](https://forum.bubble.io/u/sam.morgan)\
**Post date:** [August 15, 2022, 8:54pm UTC](https://forum.bubble.io/t/change-text-through-conditional/220087/2 "2022-08-15T20:54:47Z")

</div>

Hi Jacob,

You don’t need to include the “px” in the value - this expression is expecting a number value that we assume is in px.

So the expression should read “`current page width < 760`”

I hope that helps!

---

<div class="post-metadata">

**Author:** ![Jakob1](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jakob1](https://forum.bubble.io/u/Jakob1)\
**Post date:** [August 15, 2022, 8:56pm UTC](https://forum.bubble.io/t/change-text-through-conditional/220087/3 "2022-08-15T20:56:34Z")

</div>

Thanks 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 24, 2022, 8:50pm UTC](https://forum.bubble.io/t/change-text-through-conditional/220087/4 "2022-10-24T20:50:42Z")

</div>

Closed on October 24, 2022, 8:50pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
