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.

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.

Happy developing 
1 Like
Thank you. I did that but it’s showing incomplete. What else do I need to add?

What is the error message?
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.

You should use :formatted as

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

I was about to prepare a simple demo, but happily, you found the solution 
1 Like
You are very helpful. Thank you!
1 Like
system
Closed
14
This topic was automatically closed after 70 days. New replies are no longer allowed.