# How can I only render a part of a text's value?

**URL:** <https://forum.bubble.io/t/how-can-i-only-render-a-part-of-a-texts-value/206952>\
**Category:** Need help\
**Created:** [May 17, 2022, 6:33am UTC](https://forum.bubble.io/t/how-can-i-only-render-a-part-of-a-texts-value/206952 "2022-05-17T06:33:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonas91](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jonas91](https://forum.bubble.io/u/jonas91)\
**Post date:** [May 17, 2022, 6:33am UTC](https://forum.bubble.io/t/how-can-i-only-render-a-part-of-a-texts-value/206952/1 "2022-05-17T06:33:38Z")

</div>

I have a database instance with a field “text” that contains up to 250 characters. I now try to only the first 150 characters of that field with a ‘…’ suffix in my text element. How would I basically implement this?

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [May 17, 2022, 9:23am UTC](https://forum.bubble.io/t/how-can-i-only-render-a-part-of-a-texts-value/206952/2 "2022-05-17T09:23:42Z")

</div>

Hi there, @jonas91… you can do what you described by creating a conditional on the text element that looks like this.

![truncate](https://us1.discourse-cdn.com/bubble/original/3X/d/7/d7a2ddfded1decc6237261d0b46bec4dee9da32f.png)

Note that typing the three dots after the expression can be a bit tricky. You just have to click in the right place after the expression to get the cursor to show up so you can type.

Hope this helps.

Best…  
Mike

---

<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:** [July 26, 2022, 6:34am UTC](https://forum.bubble.io/t/how-can-i-only-render-a-part-of-a-texts-value/206952/3 "2022-07-26T06:34:04Z")

</div>

Closed on July 26, 2022, 6:34am UTC

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