How to specify a text input to be a number?

i just tried Thunkable, and I wanted to have an input field to select a number.
But I only find a Text Input field. And in blocks, no function to convert a text into a number or to control if an entry is a number or not.
Is it possible to do that?

If the user types in a number, you can convert it from text to numeric value by adding zero to the text string.

It’s possible to check if the string contains any alphabetical or symbol characters but it’s kind of a pain to do so.

1 Like

To check for a number multiply the entered text by any number. If the result is NaN then the entered value has at least one non numeric character in it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.