Copy link to clipboard
Copied
I am using Dreamweaver CS3 and VBScript coding. I have a regular text field where the user will be entering in a dollar amount and ultimately I want a user to enter in 5000 and when they hit tab to the next field I want that number to appear as 5,000.00. Searched the forums for a while and there where different variations but none answered this questions.
Thanks
Copy link to clipboard
Copied
Thread moved to Dreamweaver Application Development forum.
Copy link to clipboard
Copied
Sorry about the Subject heading, thanks for moving it to the right forum!
Copy link to clipboard
Copied
I don't use that language, but it looks as if FormatNumber() is what you're looking for.
http://www.w3schools.com/vbScript/func_formatnumber.asp
--
Mark A. Boyd
Keep-On-Learnin' 🙂
If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.
Copy link to clipboard
Copied
I think a JavaScript solution is needed here. When the form field loses focus, change the entered value into another format. I don't know the solution myself, but it should be fairly easy. A quick Google came up with this: http://javascript.internet.com/forms/currency-format.html
Good luck!
Dooza
Copy link to clipboard
Copied
Thanks bud, I just found this code and it works great!
Copy link to clipboard
Copied
Excellent, glad I could help.
Dooza
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more