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.

limit the number of characters in a field

Featured Replies

Is there any way I can limit the number of characters a user can enter in a certain field?

I have a script that matches two fields and then displays some related data in a different layout.

Lately it will occasionally display the data from a different field in the record. In each of those cases, the field that is being compared in the find has an extra character, usually a space.

I'm thinking this extra character may be messing up the search (I'm grasping!) and would like to sound an alert or something if the user exceeds 8 characters in that field.

Any ideas?

Thanks--

Susan

Susan,

In Define Fields push the Options button then on the Validation tab you will find Maximum Number of Characters. Check the box and insert 8. That will not allow the user to save a record where the field contains more than 8 characters. He or she could physically enter lots of characters but would get a warning message when trying to save the change.

You may also want to explore the Validated By Calculation method too. That way you could prevent the user from entering carriage returns or spaces.

  • Author

Thank you, Ted! I can't believe I didn't see that before--duh! I tested it with an extra letter, a space, and a return, and got my error message everytime. Now hopefully it will solve the wrong data problem.

Susan

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.