Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7008 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

ofcourse...

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

Posted

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.

Posted

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.

Posted

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.

Posted

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

This topic is 7008 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.