SOLVED
How to error check for only numbers from user input in an analytic app
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
csh8428
11 - Bolide
‎10-04-2023
12:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have an analytic app. One of the user entered values can only be a positive number(can be a decimal). I know how to error check for blank values, but not how to check for data types.
What expression would I enter into the error tool to check for that?
Thanks for any help!
Craig
Solved! Go to Solution.
Labels:
3 REPLIES 3
Prometheus
12 - Quasar
‎10-04-2023
01:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@csh8428 I would suggest using a Numeric Up Down tool instead of a Text Box tool if you want your users to only input numbers. The configuration allows you to set up/down increments, min, max, and decimal places.
binuacs
21 - Polaris
‎10-04-2023
02:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@csh8428 You can use the Regex function to check whether the incoming data is numeric or not
REGEX_CountMatches([#1],'[^\d\.]')>= 1
‎10-05-2023
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That worked.. Thanks!!
