Input Field with Currency Format Doesn't Work?

Hi everyone 👋

I'm new to working with variables in ProtoPie and I'm currently experimenting with the input field. Here's what I aim to achieve:

  • Restrict input to numbers only.

  • Prefix the input with USD.

  • Limit the input to 12 digit only.

  • Display the input in currency format using "#,###".


However, I've encountered some challenges:

input with currency.mp4
  • The input field's value stops at 4 digits. I suspect the comma (",") might be causing this issue.

  • The currency format ceases to function after exceeding 4 digits.


Has anyone experienced similar difficulties before? I watched the tutorial "How to Format Currency in Money Transfer App in ProtoPie: https://www.protopie.io/blog/how-to-format-currency-in-money-transfer-app-in-protopie", but it involves hiding the input field, which is not my desired approach as I want a visible focus cursor.

I've attached my pie for your reference. Thanks!

input with currency.pie