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.

Validating fields and the script cancelled message

Featured Replies

Hello,

First want to be sure i mention that I really do appreciate the folks in these forums for all the help. I have a few books and do try to hit them first before i ask for help here, but just so it's clear - appreciate all the help!

now for a question;

I have a date field, which I want to validate, i simply want to make sure they do not type a date less than today

something like this I use for validation calculation: Date_Due ? Get(CurrentDate)

I also put in a custom message, which says the name of the field and is a little more polite than FM7s stock message.

fine.

I have a layout called Edit Record and then I have a button (actually a few buttons) which take the user to different places. When any of them are pressed i want to save the record - so I enabled in the layout 'automatically save record'.

When i click the "return to main screen' button, the record is validated and my message pops up saying "Uh, Please use todays date or a future date for this field, thanks." - and it has "Revert Record" and "OK" buttons. One question is how can I change "Revert Record" something like uh maybe "Cancel"??

next, after that message appears, my script is now running to go to the "main screen" layout. and FM7 pops up a message "go to layout has been cancelled, do you wish to continue with this script?" and the buttons "cancel" and "continue" are there.

I don't want that additional message, i just want the first message.

How do you guys handle this? Or do you just do your own custom validation in a script?

thanks,

sincerely,

J__

You can make filemaker error dialogs go away by using the set error capture script step in your script. Then it's up to you to trap for all the possible errors show messages to the user.

  • Author

thanks.

I actually realized this or thought I did after i sent the mail ... and then was playing around with Set Error Capture for another reason .. and saw it disabled the dialogs from appearing...

do you know what the "Revert and Cancel" dialog corresponds to for error messages?

any other additional tips on how to handle this?

thanks,

sincerelry,

J__

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.