How to display "0" instead of "0.000" in a decimal input field?

Hi everyone,

I’m struggling with a decimal input field in Bubble.io. I want the field to display “0” when clicked instead of “0.000”, but still allow users to input decimal values like “2.345”.

So far, I’ve tried:

  • Using conditional formatting → No success.
  • Using JavaScript with “Run JavaScript” in Toolbox → Didn’t work in Bubble.
  • Changing the input type to “Text (Numbers Only)” → Works, but doesn’t allow decimals.
  • Various plugins → No luck so far.

Has anyone encountered this issue before? Is there a known way to achieve this? Any workaround, plugin, or JavaScript solution that works in Bubble?

I’d appreciate any help! Thanks in advance.

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