Forum Academy Marketplace Showcase Pricing Features

Charge User: Amount should be a number but right now is a text

I run into this issue often, gets pretty frustrating. I am displaying dynamic data into a text input field. It displays a users Total. I want to charge the user that total, but I get an error that reads “Charge the current user; Amount should be a number but right now it is a text”. Which is correct; I have the data input field formatted as text because otherwise $48.75 becomes 49 and/or $48.00 becomes 4800. Always feels like I’m having to wrestle with this issue. Why are numbers with a decimal interpreted as text?

Any suggestions?

Use Numbers.

You can display them with decimals if you like. You don’t have to use the text type to show the .00