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.

Get(ActiveFieldName)

Featured Replies

Do not understand Get(ActiveFieldName) usage:
Simple script:
     set variable $fieldname = Get(ActiveFieldName)
1. place cursor in desired field.
2. run script in debug mode, data viewer on
3. $firldname always null 
 
    set variable $fieldname = Get(ActiveFieldName)
    set field (xyz) = $fieldname
1. place cursor in desired field
2. run script
3. field (xyz; text) is empty
 
What am I doing wrong?
Same problem with Get(ActiveFieldContent)
Other Get(Active***) all appear to work as I would expect.

Where is your actual script? How are you triggering the script?

Can you show us your file or a simple example file?

There will need to be a second step in the script so you can stop in debugger and look at the variable contents before the script ends.

Since you are using a script variable ( single $ variable) it will always be empty after the script runs.

While this is something you should be able to do successfully - in real life, what do you want to do with $fieldName?

 

  • Author

Thanks for the response BruceR and sorry for the 4PM shout out. As you suspected, I was maligning the  script step by stepping out of the layout and back before executing the step. Brain was running in standard knucklehead mode.

Moved get(active....) in front of unrelated  layout in/out housekeeping and it functions as expected. Once again, thanks for the advice.

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.