Help Needed with Formatting Seconds in Bubble

I’m trying to format a seconds value in Bubble to ensure it always displays with leading zeros for single-digit seconds (e.g., “05” instead of “5”). I’m running into issues with the formatted as text option not appearing for my calculations.

Can anyone suggest a solution to pad numbers with leading zeros or help with any workarounds? Thanks in advance.
Screenshot 2024-10-11 at 6.11.22 AM

Hello, you are trying to find Boolean Formatting. If you add < 10 at the end of the dynamic expression the whole expression will return true or false. Now you can find and add :formatted as text.

image

Happy developing :slight_smile:

1 Like

Thank you. I did that but it’s showing incomplete. What else do I need to add?
Untitled 2

What is the error message?

Screenshot 2024-10-12 at 2.35.26 AM
Looks like there is two.

So you need to convert it to number. You can see that function in the list.

1 Like

Makes sense. Last things lol how do I get it to display on the first two numbers?

10:42 instead of 10:42356

I treid rounded to 0 but that didn’t do it.

Uploaded image

You should use :formatted as

image

1 Like

Well this is just for the seconds. So I want the decimal place to be 0 and it to be “42” instead of “42356”.

I tried this but I got something even longer…

Never mind. I was making that way harder than it needed to be. lol
Screenshot 2024-10-14 at 5.02.30 AM

I was about to prepare a simple demo, but happily, you found the solution :slight_smile:

1 Like

You are very helpful. Thank you!

1 Like

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