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.

Validate with a custom function

Featured Replies

Hi

while playng with Get(ActiveFieldName), I found that this function can be used in a custom function and gives back the name of the field specified as parameter of the function itself.

Look at the attachment.

It launch a script too, but you have to have the S4HU plugin

Validate.zip

You can do the same thing much more easily with Field Validation, your calculation, an auto-enter calc in field Validate, and without S4HU Plug-in or script.

  • Author

ofcourse...

but the intriguing thing is the possibility of grab the field name... just what we searched for your topic about evaluate()

Right. Without the plug-in, Get (ActiveFieldName) returns the name of the last field you were in, not the current one. It's almost as if FM, Inc. created Get(ActiveFieldName) with the S4HU plug-in in mind.

  • Author

Right.

That is the strange thing...

I think that this "feature" can help for something more complex !

Get (ActiveFieldName) returns the name of the last field you were in, not the current one.

I am afraid that is incorrect. Get (ActiveFieldName) returns the name of the field currently containing the cursor. "Currently" means at the time of the evaluation.

That is why it returns the previously activated field when used in a field definition; the field is not re-evaluated until it is exited.

Ahhh, interesting...then I stand corrected. Thanks comment and -Queue- for setting the record straight!

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.