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.

I'm lost, someone help !

Featured Replies

Okay, this is what i try to do.

I have a database with contacts in multiple languages. I designed a few layout with standard letters on top of wich merge fields are positioned for greeting. The idea is to send a letter based on the language of the person with his name on top. For that I created a script but it doesn't work, i only get erratic results.

This is the script

GO to record (first)

loop

if ("language = "french")

Go to layout "Letter FR"

Print Setup

Print

Else

Go to record (End if last, Next)

End if

End loop

What am I doing wrong here? I tried to figure this out all night yesterday, but kept stuck on the same problems. Anyone could give me some help on this as i am fairly new to FM.

Thanks

Marc

I assume that you only want to print letters for records whose language is french, and skip all other records.

Your script will not advance to the next record if the language = french. It will stay on the same record forever and print an infinite number of the same letter to the same person. Replace the 'Else' step with an 'End If' and delete the other 'End If'. Your script should probably look like this:


Go to layout "Letter FR"

GO to record (first)

loop

if ("language = "french")

Print Setup

Print

End If

Go to record (End if last, Next)

End loop

Go to Layout [original layout]


  • Author

Thanks for helping me out with this.

I'm goi,g to give it a try later today and hopefully it will perform as I expect.

Cheers !

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.