OnBlur-Entry level question

Sort:
You are not authorized to post a reply.
Author
Messages
brihyn
Veteran Member
Posts: 95
Veteran Member

    So I'm getting better with the scripting (thanks to excellent help here), and I've added 3-4 various java scripts to meet user requests, but I'm still struggling with what has got to be a pretty easy concept...

    When I use a function, such as OnBlur, how do I use it to specify a specific field?

    function TEXT_OnBlur(id, row)
    {
      return true;
    }

    How do I tell the application to execute my code on the blur of a specifc text field? I tried replacing the id,row, for example, with the name of my field, both "text1" and "_f21" .

    I have the same problem with some of the other functions, buttons, etc. But the OnBlur seems like a perfect example (and the one I'm working with right now)

     

    Terry P
    Veteran Member
    Posts: 234
    Veteran Member
      No, the id, row is what is PASSED to the function. You use that to do your selection:

      function TEXT_OnBlur(id, row)
      {
      if (id == "text1")
      {then do this}
      return true;
      }

      brihyn
      Veteran Member
      Posts: 95
      Veteran Member
        Thanks. I considered that, but I was second guessing it. It just didn't seem like that's how I should be using the function.
        You are not authorized to post a reply.