2 Replies Latest reply on Sep 28, 2010 1:40 PM by d.justins

    Using "Self" Function/ Referencing a field with a variable

    d.justins

      Title

      Using "Self" Function/ Referencing a field with a variable

      Post

      Wracking my brain on what seems like a simple thing.

      I want to set it up so that if a user leaves a field blank after inputting, it will insert a default value.

      I've been trying to use field script triggers for this, "OnObjectExit."

      I want to use this on many fields, so i don't want to use a defined field name. I've tried using:

      If(IsEmpty(Get(ActiveFieldName))

      If(IsEmpty($$Variable) - Using the OnObjectEnter to set the field name as the variable

      If(IsEmpty(Self) - This just doesn't work. Filemaker won't let me use Self in a script outside of an exact object.

      I'm really stumped.