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.

email sent from Portal

Featured Replies

  • Newbies

I have a client database that we use on a regular basis, runnning in FileMaker 8.

Displayed in this client layout is a portal containing the user contact information. Such as;

Name, Phone, email.

I am tring to create a script so that I can click a button in the portal row to send an email to the user of that row. This works for the first entry in the portal. If I click the button in the second or third portal row the email is always addressed to the email recored in the first row.

Any ideas how I get my script to pick up the email address from the second or third row?

Edited by Guest

If you have the button (in the portal row) that envokes a script, which performs a send mail step with a calculated result that references a email field in the realted table then it should be working.

in other words, if you have a portal in your companies layout that displays all the conacts from the company table for that specific company, when you run the script it should work properly.

Can you double check to make sure you referenced the correct relationship when picking your field?

If you have done all of this correctly, and it still is not working, please a copy of your file.

  • Author
  • Newbies

I am fairly certain that the relationship is correct. I have attached a screen shot of the script I am useing.

If you need the database I can send it off line.

Thanks

Picture_7.png

When you perform the commit records step, it no longer has the relted portal row record that you selected, active. Therefore you will always get the first email address.

You may be able to get around this by using a varible to set the last portal row number and then going back to it after the commit step, or getting rid of the commit step in that part of the script all together.

  • Author
  • Newbies

Thank you for your help, however this did not seem to work. I was not sure about setting the last portal row number, so I just commented out the commit step as you suggested. Unfortunately this did not help.

I think I must be missing something.

If you have time I would appreciate any other suggestions.

Thank you.

Well looking at the file you sent me, your relationship in your script is not the same relationship of your portal. You are using Email Confirmed::Communication Data 3 instead of Client Contact Database::Communication Data 3, which your portal reflects.

Make sure this is correct. In the PNG you posted it was correct however with the sample fiel you sent me it was not.

  • Author
  • Newbies

You were correct. I made the change and all is working well. Thank you very much for your time.

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.