Skip 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.

Need help with email script

Featured Replies

  • Newbies

Hello,

I am new to FileMaker Pro and need some help editing a script for the Lending Library template.

I want to insert the First Name of the person who checks out a library item in the reminder and late notice email. So the email would look something like this:

--------

(Contact First Name),

You borrowed (item x) by (author y) on (check out date)from the library.

This item needs to be returned on (Due Date).

---------

Everything works in my script except the first name field.

I've tried entering the History Contact ID: Contact Name field as well as the Contact: First Name field into my script, but it isn't working.

I'm not sure which field I should be using and/or if I have the script commands down right.

Here is my script as it stands now (without the first name at the beginning):)

"You borrowed: ¶¶" & Assets::Title & " by " & Assets::Author & "¶on " & GetAsText(History Asset ID Flag Checked Out::Check Out Date) & " from the Library. ¶¶This item needs to be returned on " & GetAsText(History Asset ID Flag Checked Out::Due Date) & ".

--------

Any help would be most appreciated.

Cheers,

CanadaDry

Sounds like it is a relationship problem. Check your relationship from contact to assets.

I think I would use the set variable command in the script. So name a variable say $MessageText. Then click on the "Specify" button next to the "Value" area. Then define the value to be something like:

"Dear " & FirstNameField & ¶¶" &

the rest of the message you've alreay calculated.

Then in your SendMail type in $MessageText in the "Message" box.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.