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.

Stopping users entering '-'

Featured Replies

I have a field for number of pupils. How can I prevent a user from entering in something like 275-300?

All I need is the whole number or I cannot search on that field.

Thanks.

set the field data type to number and validation to strict numeric only, do not allow override, validate during data entry

  • Author

Thanks.

Why not use the Filter Function?

Go into Manage Database and [color:blue]Select the field you want to Filter.

Click on [color:blue]Options

Click on [color:blue]Calculated Value

Copy or Enter this Calculation

[color:blue]Filter ( Self ; "0123456789" )

Click [color:blue]Okay

[color:red]Deselect "Do not replace existing value of field (if any)"

Click [color:blue]Okay

Click [color:blue]Okay

Now, only 0123456789 will stick, anything else will not.

Your example of 275-300 will become 275300

If you have an issue with already entered values, let us know and we can walk you through how to handle that too.

HTH

Lee

Edited by Guest

  • Author

Thanks Lee

If you are using FM10 or FM11 you could do it with a OnObjectKeystroke script trigger.

To do this, you simply create a simple script that checks the key pressed by the user. If it's a key that you don't want entered into the field, you Exit Script[0].

I attached a real simplistic file that demonstrates this.

PauseGSP.fp7.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.