# Get ( ActiveFieldName ) & OnObjectSave Trigger

**URL:** <https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527>\
**Category:** Questions\
**Created:** [October 14, 2021, 4:35pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527 "2021-10-14T16:35:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihm](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nihm](https://the.fmsoup.org/u/nihm)\
**Post date:** [October 14, 2021, 4:35pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527/1 "2021-10-14T16:35:56Z")

</div>

I have a field with a script triggered to run "OnObjectSave". I want the parameter for the triggered script to be the name of the field.

I have to do this a bunch, so it would be helpful if I could just have the parameter be Get ( ActiveFieldName ). Claris' definition for that function is:

> Returns the name of the field that has the focus.

Inattention to detail has come back to bite me in the past, so forgive me if this is a ridiculous question, but is there a way for a field that has been edited to lose 'focus' WITHOUT triggering the OnObjectSave script? In other words, do I have to use GetField ( fieldName ) instead?

---

<div class="post-metadata">

**Author:** ![jwilling](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/jwilling/32/256_2.png) [@jwilling](https://the.fmsoup.org/u/jwilling)\
**Post date:** [October 14, 2021, 5:41pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527/2 "2021-10-14T17:41:48Z")

</div>

The only way I know to bypass OnObjectSave for an edited field is to have the Script Debugger open with the triggers button disabled.

---

<div class="post-metadata">

**Author:** ![nihm](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nihm](https://the.fmsoup.org/u/nihm)\
**Post date:** [October 14, 2021, 6:49pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527/3 "2021-10-14T18:49:02Z")

</div>

Ok thanks! That's reassuring to hear.

---

<div class="post-metadata">

**Author:** ![Kirk](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/kirk/32/2197_2.png) [@Kirk](https://the.fmsoup.org/u/Kirk)\
**Post date:** [June 19, 2022, 3:16pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527/4 "2022-06-19T15:16:34Z")

</div>

The sequence and timing of script triggers is tricky business. Soliant has a old blog post with a graphic of the Trigger firing timing that is worth a look.

---

<div class="post-metadata">

**Author:** ![Kirk](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/kirk/32/2197_2.png) [@Kirk](https://the.fmsoup.org/u/Kirk)\
**Post date:** [June 19, 2022, 3:18pm UTC](https://the.fmsoup.org/t/get-activefieldname-onobjectsave-trigger/2527/5 "2022-06-19T15:18:14Z")

</div>

Note: field triggers are a presentation layer action; it takes a direct user input to cause the trigger to fire.

Scripting the content of that field would skip the trigger firing.
