Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Setting specific number of characters

Featured Replies

I think i am missing something obvious, but how do you set a field so that it must contain a specific number of characters? i.e. only three digit numbers?

You are asking for two different things:

length(field)=x

would be for a specific number of characters (swap x for 3). But, this would also allow values that are not three digit numbers, like "HAT". Do you need it to be only numbers? Decimal values OK (would make a three digit number more characters...)?

-Raz

  • Author

would length(getasnumber(field)) solve to only allow numbers?

i hadnt thought of decimals, but there will never be an instance when they are needed.

basically i have a lot of fields that require either two, three or four digit whole numbers. i dont want to allow any other values in these fields.

sorry if i dont explain this well!

For three digits; how about setting as a number field and:

field>=100 and field <=999 and Int(field)=Field

  • Author

hey that is slick, but what if the number is 001? would that still work if i changed to >=001? these are specific codes so even if it is a single digit number, the leading zeros have to be there. thanks!

Why not check the "Numeric Only" option, then add a calculation of Length (field) = n?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.