Forum Discussion
SimonPerkins
13 years agoCommunity Member
Can I prevent "NaN" from appearing in numerical entry?
Is there a way to do this? Am using conditions to handle which numbers ARE allowed and to display an error if invalid numbers are entered. But can't get it to stop letters etc from being entered/...
MiquelCap
8 years agoCommunity Member
Hey Simon, I had the same problem and I tried to leave with a 0, this way, in a group it can calculate the sum of the fields.
I see that this conversation is from 5 years ago, so I hope you had solved XD, but if can be useful for other people I did this:
IF( NOT( {string} > 0) , 0 , {string})
- BobbyBlake-541a8 years agoCommunity Member
Hi Miquel,
Could you provide a little more insight on how to plug this into a course?
For example, the variable I'm trying to keep from being NaN is labeled "NumericEntry1"