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.

Performing Set Field with one or two unique number

Featured Replies

I have a db which has a welders form that is used to qualified a welder for two processes. I have combined two fields to create a unique ID for each process. The fields combined are the welders id number and the process (ex. 3605FCAW).I have written a script using the set field command that creates separate records for each process in another db to store the data. This works find except that sometimes the form is used for only one process. When only one process is used, the second unique field will only have the welders id (ex.3605). As this number is only enter once in the form, this creates another record in the db since there is no reord in the second db with just the welders id. I tried formatting the second unique field with the "isempty command" for the field to be blank. When the sript button is activated, FM pops-up a message stating that the script cannot be run until the second unique ID has a valid value. The relationship is defined on the unique id. Is there a way around this messenage

Thanks

One method I see is you can remove the Not Empty validation from the second process field definition and you can auto-enter a value in there like XXXX.

Then use your script to validate the value in the second process field

If [secondProcess <> "XXXX"]

(Then create your record)

Else

(End the script)

Hope this helps.

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.