Currency input

  • elli4931-1329546733310578691

    Vizualinx

    23 days ago

    I am trying to make a currency input, the problem is that i need to be able to input also cent, for example 25.50, i tried with toddle ai to do it. here is where i am at (see screenshot), the problem is that now it doesn't set the variable with the input value.
    1329546734652756050-Screenshot_2025-01-16_at_21.20.53.png
  • if this helps
    1329546967352868915-Screenshot_2025-01-16_at_21.24.47.png
  • lucasg-1329548967813316729

    Lucas G

    23 days ago

    1329548967620513844-image.png
  • lucasg-1329549227474292778

    Lucas G

    23 days ago

    This works for me
  • elli4931-1329552269590532097

    Vizualinx

    23 days ago

    Thanks!
    the problem is when i'm trying to bind it to the input event it just wouldn't update the variable.
    1329552269313573014-Screenshot_2025-01-16_at_21.45.55.png
    1329552268885758042-Screenshot_2025-01-16_at_21.44.23.png
  • lucasg-1329578831450734703

    Lucas G

    23 days ago

    The field might need to be text not number
  • And you probably do not want to hard-code the locale
  • elli4931-1329579317692465213

    Vizualinx

    23 days ago

    i know, thats for the while. but thanks. i'll try with text.
  • elli4931-1329579783918588026

    Vizualinx

    23 days ago

    when i'm doing as text not number i don't need that formula, right?
  • lucasg-1329579890965741638

    Lucas G

    23 days ago

    You'll probably still need it
  • elli4931-1329580338065833994

    Vizualinx

    23 days ago

    Im getting this
    1329580337835282463-Screenshot_2025-01-16_at_23.37.25.png
  • lucasg-1329580448002609284

    Lucas G

    23 days ago

    Is that currency symbol hard-coded?
  • You wouldn't need any formulas if so
  • elli4931-1329580615087161404

    Vizualinx

    23 days ago

    The currency symbal is a separate text with absolute
  • lucasg-1329580785056874566

    Lucas G

    23 days ago

    Yeah you don't need my formula then
  • The formula renders the proper format depending on locale/currency selected. I didn't realize it was hard-coded
  • elli4931-1329581040402174088

    Vizualinx

    23 days ago

    Got it. now if i'm using text how can i restrict to only be able to type numbers and decimals?
  • lucasg-1329581327434911825

    Lucas G

    23 days ago

    Formulas on the input event should work
  • elli4931-1329581376713785456

    Vizualinx

    23 days ago

    Like what?
  • lucasg-1329581662274850867

    Lucas G

    23 days ago

    I don't follow. Formulas would depend on how you're trying to output it
  • elli4931-1329581821918183475

    Vizualinx

    23 days ago

    right, what formula can i use to restrict typing any letters?
  • lucasg-1329581890230816868

    Lucas G

    23 days ago

    There is another help thread tha tmight help
  • Somebody posted some screenshots
  • elli4931-1329582082082476083

    Vizualinx

    23 days ago

    ok thanks i'll try to look it up.
  • lucasg-1329614156407636093

    Lucas G

    23 days ago

    Did you figure it out?
  • What exactly is the issue if you have a number type field and that's it?
  • You're setting the symbol independently so the regular number input should be fine no?
  • elli4931-1329697206051147836

    Vizualinx

    22 days ago

    No I didn't.
    The problem is not the symbol the problem is being able to input cents like 10.50.
  • elli4931-1329698043129499660

    Vizualinx

    22 days ago

    If I use number type input with the formula you mentioned above, then I am able to input decimals but it wouldn't update the variable.
    If I use text type input, then I need to be able to restrict typing in any letters. And I haven't figured this out yet.
  • elli4931-1329761577351512108

    Vizualinx

    22 days ago

    It's finaly working!
    for anyone in the future trying to have this working, here is the solution https://discordapp.com/channels/972416966683926538/1329584896288624722/1329760135484276766

    Thanks @Erik Beuschau & @Lucas G !
    🙌2

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.