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.

noob: make record with field that has validation?

Featured Replies

I have a db that has a validation of 'not empty' and also has strict and a message on it. But now I'd like to script making records into the db but also need the validation for when users manually enter info.

When I script a record to be made and try to enter the info into a field when the validation is on, it fails, but when I turn off the validation on the field then I can add any info I like. Can I get around this at all?

[color:blue]set myNewRecord to create record

go to myNewRecord

set cell "BookCode" of myNewRecord to "0027000605"

I guess the question is, why let a script enter incorrect data but not a person?

If you were using FMP 7 you could use the Commit Record script step with the option to bypas validation.

  • Author

Well, the script won't enter incorrect info, but a user always can. It's a big system I have, so there are sufficient safeguards to automation, but when users are more direct then there are not.

Do you have a suggestion that will help me? Thanks! B)-)

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.