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.

Count the number of times a record is emailed?

Featured Replies

  • Newbies

I've got my tech. support request DB set up with CDML/HTML pages on our intranet. When a techie enters or changes a record, he's got the option to email the updated ticket to the user.

However, I'd really like to track how many times a record has been emailed.

I'm a complete novice with FMP 6 scripting, so I'm totally in the dark here.

Also, if my DB has a STATUS field with two options, PENDING and FIXED, how can I track how long a record has remained NOT fixed? I.E. - This ticket has been active for XX days. Right now we're doing simple math, but my boss wants a daily counter field if possible.

Thanks!

1.

Create a numberfield, I'll call it emailcount

If the email option comes up as a message with one button called E-mail and the other xxxxx it could look something like this:

Show message

If(get(messagechoice)="E-mail")

Set field(emailcount;emailcount+1)

-----the rest of the email script----

Else

-----things to do if the techie don't want to send an email----

End IF

2.

When the statusfield is set to pending (what does that mean) there could be a script that fills a datefield with the current date (get(today))

Then you could have a calc field which looks like this:

calcfield= Get(today) - datefield

This works if you never go back to fixed....

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.