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.

Listing multiple field contents in a field

Featured Replies

Hello all,

I have a layout in my database that I am trying to use as an order entry form. When the form is complete, I'd like the database to send out an email with the body of the email being a list of field names and contents of the record displayed as a list. Like this:

Entry Date: January 20, 2009

Customer Name: 3M etc.

I've been trying this using the FM email feature, but it only lets you include the contents of one field. So I was thinking if there is a calculation that I could use to list the info as formatted above, in one field and then include that in the body of the email, that would solve the problem. Does this sound logical? Is there a better way that people normally use to achieve this?

I look forward to hearing from you.

MVC

create a calc field, eMailBody, and use the concatenate features to create the text block you want. For example,

eMailBody (result text) =

"Entry Date:" & TO::EntryDateField & "¶"

& "Customer Name:" & TO::CustomerNameField

...where TO is the table occurrence.

Edited by Guest

  • Author

Forgive my naïveté, calculations have not been my thing. Here's what I have in the calculation dialog:

"Entry Date: " & Date & "¶"

"Customer Name: " & Customer Name "¶"

But I get the alert that an operator is expected here: and have the second line highlighted.

What am I missing?

As it says, you are missing a few & operators:

"Entry Date: " & Date & "¶" [color:red]&

"Customer Name: " & Customer Name [color:red]& "¶"

BTW, although as a rule literal text needs to be enclosed in quotes, there is an exception for a single carriage return, so you can safely make it:

"Entry Date: " & Date & ¶ &

"Customer Name: " & Customer Name & ¶

  • Author

Brilliant, worked like a charm.

Thank you both.

hi - i am wanting to do basically the same thing - but a LISTING of only ONE field - like student names... in the email - any help very much appreciated.. :-)

Not quite clear, in terms of context.

As comment asks, where are you starting-- what table? and where are the student names? another related table?

  • 2 weeks later...
  • Newbies

I think what is being ask, since this is the solution I am trying to find, is this.

I want to make a list separated by ";" that includes email addresses from two different tables - one is a general company email (only one email address in a single field) and the other are all the emails from the related contacts (as many as 10 or more). The company and contacts are related through a member id number.

Is there a script I can use?

Thanks

You don't need a script, you need a calc.

All_eMails = Substitute (CompanyEmail & ¶ & List (related::emails); "¶", ",")

result text.

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.