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/...
DivyaPerugu
Community Member
how to remove that NaN in age field
ChrisWalsh
7 years agoCommunity Member
@Divya,
Your requirement will be pretty complex because you will require three separate boolean IsNaN variables to separately test each of the numeric values Year, Month and Day, and then display an alternative Age value if any one of them is a NAN value.
This might be easier to do in JavaScript where the Number.isNaN()
function is readily available. I could help but you would need to provide:
- The variable names and types of the DOB and Age fields
- How you are getting the Year, Month and Day from the "Date of Birth" field
- What your triggers currently look like.