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.

validate though calc in global input

Featured Replies

I have layouts using global fields as data input tools. When the user is ready, it creates a new record in the correct location and popluates the various fields from the globals. The rub is that I need to validate (unique value) the global against the existing data to prevent duplication. Is there a way to set the global's validate from something that will look at the existing data? I am thinking of something like this (but don't think this syntax is right):)

isValid (global::abbr_g ≠ data::abbr)

Would that check for a unique input?

thanks

There are a few different ways to check this. Here is one. If you create a relationship keyed on global::abbr_g = data::abbr, you can check it via a valid relationship.

IsEmpty ( data::abbr )

  • Author

Thanks, but how do you do the check? I don't see anyway to place a calc into the Edit Relationship window. That might be a handy tool.

If you are using a script to create the new record, then why dont you just check it there?

  • Author

To answer your script question, I was a bit unclear at the beginning I think. Those global fields are in a unique "input layout". The script needs to check the validity of some of the inputs before it commits the new record. I think it needs to check and validate at the point the user is trying to add it into the specific fields in the input layout as opposed to when the record (with multiple field entries) is being committed. That is why I was trying to do it that way, I'm I off on this?

thanks

If you have a bunch of global fields where they enter in data, it doesnt really matter on the commit. You can provide your checks and validation as part of your script before writing any of the data into the data table itself. If it fails any of your checks you would prompt the user.

  • Author

that makes sense, thanks

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.