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.

Field Validation in IWP

Featured Replies

Because the built in field validation causes a problem with FM Server Advanced (the error 13 problem that has been discussed here in this forum), I've had to turn off unique field validation for a field that really needs to be unique. Does anyone have a good script for validating a field as unique in IWP? Thanks!

How about setting up a self relate on that field and using the Count() function in your script to see if it already exists

Phil

  • Author

I've been trying a script with that as an element, but I've been unable to make it work. Thanks for the input, though!

Are you committing the record before you check for duplicates? My guess is that if you haven't submitted the record, the relationship won't work and you'll always get N-1 as the count of identical keys.

Another way to do it might be to break up the data entry: Have an initial screen where the person enters only the info that must be unique, and have them enter that into a global field. Then script a "continue" button which checks it for uniqueness by doing a scripted Find (setting the Find field to the value of the global field they just entered). If you find matches, you can then do something sensible (like, take them to the duplicate record and have them edit it, etc.)

  • Author

I have committed the record, but the script I have, which I've customized (I believe from the FM knowledge base) has a step in it which pauses the script, and I think this is what isn't working with IWP. Thanks so much for the advice.

Yep. Click the "show web compatibility" checkbox in the script editor, and it will alert you to script steps (or script step options) that are not IWP friendly.

What's this "error 13" problem?

  • Author

When using FileMaker Server Advanced and IWP, when you have field validations turned on, after a time, noone can log into any hosted databases. They instead get "error 13" when they attempt to log in. FIleMaker is aware of this "bug." I don't know whether it's fixed for FM Server Advanced 8.5 or not.

  • Author

Yes, this is a great feature to instantly identify IWP compatible script steps.

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.