Menu
Hello,
Does anyone know if there is a script that converts a string value to a number?
Heres what I’m trying to do;
If you have a form text field that warrants a dollar value to be entered like “6,000,000,000, 6,000,000 or 6,000”. I would like to make it available for the user to enter an abreviation of “6b, 6m or 6th” in the form field and once it’s entered, it changes the letter abreviation (b, m or th) to the full numeric value (,000,000,000 or ,000,000 or ,000).
ex: 6b=6,000,000,000 / 6m=6,000,000 / 6th=6,000
Can anyone help with this?
Thanks!