Skip 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.

Is there a way to make FM run a script on/before commit?

Featured Replies

I want to run some checks on a record when it's ready to be committed or before going on to input another record. That is, after the operator has input data into the record, I want to run a script to do checks on the data to make sure it's valid. (If a field contains "a" then I need to do checka, if the field contains "b" then I need to do checkb, etc. I've written a script that performs the checks I want, but if the operator doesn't click my "commit" button, the record gets committed and no checks are performed, and she can go on to input the next record. I want to guarantee that each record goes thru this check.

All suggestions appreciated. Thanks.

I always use global fields on entry forms for my end users. Then I do my validation logic and only when all of it has been satisfied, do I script it to create and pass the data into a new record.

  • Author

Hmmm.. you mean you have them input into a "dummy" form, then when you're satisfied the data is valid you transfer it into the actual database?

Yes, much like most web forms, the database is not updated until the validation logic is passed prior.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.