Forum Academy Marketplace Showcase Pricing Features

Set the number of characters to be shown in a text element (SOLVED)

Hello,

I was wondering if it was possible to show in a text element a field but just a number of characters. For example I have a field calle “company name” that I want to show in an element text but I just want to show the first 30 characters of the company name.

Would anyone know how this is possible?

Thanks a lot everybody.

yes, it’s easy, simply click on more after your dynamic expression and choose truncate - it allows you to set the first n number of characters to be displayed

Thanks,
Levon.

Founder at Bubblewits - Bubble Certified Partner


http://iambubble.com - one page Bubble demo
http://builtonbubble.com - Collection of apps built on Bubble
Dev.zeroqode.com - Reach out if you need help creating something on Bubble

2 Likes

Thanks a lot @levon

And what about numbers? I don´t see the “truncate” thing.

Thanks.

you want to truncate the number fields too?

Oops! not actually, hehe. I´ve just did understand what truncate does.

With numbers I need to set the format of a number so it´ll be always a 14 characters number and it´ll be like this example:
the number is 126,50 so it should be set to 0000000126.50

Thanks a lot @levon

i guess that will be possible only if you treat the numbers as a text field. or you could show “00000” as text +dynamic expression for the number so that the user would see something like 000126.50

1 Like

I´ll try that.

Thanks a lot @levon

This got solved,

Thank you so much @levon

1 Like

you are welcome, Nacho!

Thanks,
Levon.

Founder at Bubblewits - Bubble Certified Partner


http://iambubble.com - one page Bubble demo
http://builtonbubble.com - Collection of apps built on Bubble
Dev.zeroqode.com - Reach out if you need help creating something on Bubble