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.

Send email when field has a specific value

Featured Replies

  • Newbies

I want to automatically trigger the sending of an email when a new record is entered into my database (from the web) and one of the fields has a specific value in it (in this, case, the value will be 'urgent').

I'm using FMP 6.0 so I figured out how to construct a script to send email (because of the very useful information on this forum). But I'm not very good at scripting and can't figure out how to make the email send itself when the specific condition (field value) is met.

If you can help -- or point me to a posting I might have overlooked that could give me some direction -- I would very much appreciate it!

Cheers,

cjb :confused:

First -- you should use Custom Web Publishing.

Then with creation of new record you can send email directly from Web Companion.

You shouldn't use FM scripts in web solution, but it may work.

  • Author
  • Newbies

Thanks.

I've got the web portion working just fine. It's how to trigger the email to be sent when the new record has a specific field value that has me a bit perplexed. I had heard that FM scripts don't work so well with web solutions, but I think it might work ok in this case if I can figure out how to structure the script to only trigger SendMail when there is a new record created in the database and the value indicated for the field "urgency" is the word, Emergency.

cjb

You have to create script and somehow to trigger that from Instant Publishing. Then after the script will check for the word Emergency you will exit or send email with help of plugin SMPTit. It might just work.

I've never worked with very limited IWP, but maybe you'll be lucky...

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.