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.

nominating which field is to be "set"

Featured Replies

pardonnez moi for being such a boring newbie, but is there ANY way in FM that I can 'Set' the contents of a field, the name of which is constructed while within a loop ?

I have defined fields called "printField1", "printField2" etc etc.

Now, I can have a field called "fieldName", which I can set up to be, say, "printField" & NumToText(indexNumber). As I go through a loop, "fieldName" becomes progressively 'printField1', printField2', 'printfield3' etc etc. Can I now actually SET the defined fields called 'printField1', 'printField2' etc using a script step which accesses whatever "fieldName" contains ?

If so, whoopee ! If not, pretty damned restrictive I'd say.............................

Expert advice extremely welcome.

thanks in advance

What you are trying to do is possible, but not the way you are envisioning.

You haven't provided enough information to provide you with a definitive answer.

Are you working on several records, or one record. Loop scripts are designed to process multiple records.

Without any more information, the easiest (but maybe not the quickest way) way would be a script with a bunch of "Set Field"s:

SetField(printField1,"whatever")

SetField(printField2,"whatever")

SetField(printField3,"whatever") etc. etc.

you can loop the following:

go to next field

set field(leave field blank, "whatever") inserts into current field ...

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.