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 have a database of customers and prospects. If they reply to an ad they will get entered to win something. How do I track this with the intent to pick a random winner, and how do I pick the winner at random?

Thanks in advance for any help. Sorry were still on 5.0 v3

See if this helps. The syntax is for version 7 and higher, but I think the principle is quite clear.

  • Author

thanks but I could not get the commands to match.

OK, try something like:

Find All

Set Field [ gWinner, Int ( Random * Status (CurrentFoundCount) ) + 1

Go to Record [ gWinner ]

Set Field [ IsWinner , 1 ]

This is just a basic sketch. Instead of finding all records, you could start by searching for only those who have entered. Or you could have a related file for the entries - so you can keep history of mutiple draws. You could keep the winner's ID in a global, instead of marking the record. And so on...

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.