For compatability purposes with other forms, I have a text field that numeric data is entered into. I would however like to perform a calculation off of this field, so would therefore like to convert the number entered into this field into a numeric value rather than a text value. Can anyone explain to me how this is done?
Thank you in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
Depending on the type of number you want you would use parseInt or parseFloat in Javascript. So when addressing your field in the calculation (assuming it is called TextField1)
var myResult = parseFloat(TextField1.rawValue) + 123.45
Make sense?
Paul
Views
Replies
Total Likes
Depending on the type of number you want you would use parseInt or parseFloat in Javascript. So when addressing your field in the calculation (assuming it is called TextField1)
var myResult = parseFloat(TextField1.rawValue) + 123.45
Make sense?
Paul
Views
Replies
Total Likes
Thank you Paul, that worked perfectly!!!
Views
Replies
Total Likes