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.

Using Custom Dialogue Box after Pause

Featured Replies

I have a script that the user triggers to set up an email which they can then edit and send.  After sending, I want the user to have an option to store a record of the email in a sub-table - because if the user cancels the email, there should be no record of having sent one.  I'm thinking the way this should work is I use 'Pause Script'  after the 'Send Mail' step, and then after the user finishes in the email window and returns to Filemaker and either cancels the rest of the script process or continues with it and the sub-record is created.

This can be achieved by just having the user click "Continue" or "Cancel" on the window . . . but those buttons can be a little hard to notice if you don't already know to look for them. I'd think a Custom Dialogue offering the option would be better - - but is there a way to resume the script via a dialogue box - - or any way to get the script going again aside from using the timer option? - - or perhaps just a better way to approach this ?

 

Can you show the script you are using?
 

So, the need is to allow the user to create an email that is stored in the database and to either send the email or forget the whole attempt? Perhaps create the email in a card window that uses a utility table (of global fields). Then, the card can have a Send button (calls a script that creates the email record - sends or queues for server sending). Cancel button just closes the card. Clear/set the globals on card window open.

It sounds like you're using the user's email client to send mail. As you've discovered, that makes it a little tricky to control the workflow. Have you considered using the SMTP option to send mail? That would make this pretty easy, using Barbara's method or whatever. You would control the Cancel action.

  • Author

Thanks for all the comments -- I took the card Window approach and it's working great.  Not sure whether my client wants to use the SMTP option.  If you use that approach, the email goes right out, when triggered, yes?   Unlike the client method, where they get a chance to edit further in the Mail window.?

Yes, SMTP sends without showing the mail client. As I mentioned above

"Then, the card can have a Send button (calls a script that creates the email record - sends or queues for server sending). "

So, the email becomes a record in FM. Perhaps an Activities table.

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.