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.

Featured Replies

I there a way I can have a random alpha numeric code generated in filemaker whenever I create a new record...

Have the field auto-enter a calculated result.

In the calculation, use the "random" function. This returns a number between zero and one. You can then multiply this by your maximum value, as well as adding or subtracting if necessary. For instance, to generate a random number between 5 and 10, use:

5 + (Random * 5)

Et voila.

5 + (Random * 5)

yes, but this is numeric... I think Andrew's looking for something Alphanumeric, like 7G98ASDF98S

For alphanumeric, define a global text field called gCharSet and set it equal to:

"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Then you can create an auto enter field with this formula:

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)&

Middle(gCharSet,Int(Random*36)+1,1)

etc.

  • Author

That Worked ...... WOW..... How do you do that ....

How do you do that ....

Middle(gCharSet,Int(Random*36)+1,1)

Random * 36 generates a random number between 0 and 36. This is so because Random generates a number between 0 and 1, so when you multiply it by something, it increases the spread. Int() then changes it to an integer (drops anything after the decimal). Then you add 1 because you want a range of 1-36, not 0-35.

Then the middle function takes the above place in the field gCharSet.

So if you set your field to Middle(gCharSet,Int(Random*36)+1,1), it will take one random character from gCharSet. Doing it multiple times separated by &'s allows you to have multiple characters (as many as you wish).

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.