Explore the community Forums Lectora Lectora Questions & Answers Formatting in-line variables Reply To: Formatting in-line variables

#421835 Score: 1
Profile photo of Tim K
Tim K
friend finder
junior moderator
wise owl
curious george
Group Member
355 pts

Doesn’t it work?

There are some Reset form actions but these are not related to reformatting the numbers with commas. They exist to reset the entry fields to a value of “0”, in case that is needed.  It is needed when a user removes all content from an entry field or clicks the “x” to clear the entry field. Then the script tries to calculate whith the new value and returns “NaN” because the empty field is Not a Number. Only then the field is reset to replace “NaN” with “0”.

This post has received 1 vote up.