Check if text contains a number

I recently needed to check to see if a text field contains any numbers, i.e. when checking a user’s password strength.

I couldn’t find anything online so I wanted to provide the solution I found here:

You can check it by having the condition: If [textinput]'s value: converted to a number is not empty. Then if any number appears in the text input, it will return as true.

Hope that helps!

There are some threads about it:

Also you can make numbers mandatory in password. Check you app Settings → general → define a password policy:


1 Like

That Regex solution in the first thread is a much better option! Thanks for pointing this out.


Just FYI, @rico.trevisan posted a great tip that could be helpful for you:

1 Like