Our Preferred 5 Star Hosting Provider - Award Winning FileMaker Pro Hosting
Results 1 to 2 of 2
  1. #1
    FREE Member
    Join Date
    May 2009
    Skill Level
    Last Post
    Local Date
    Local Time
    09:39 PM
    Last Active

    run script with "enter" keystroke

    on FMA11, How do you run script when user keystroke "enter"?

    I have a text field that ONLY when user keystroke an "enter" the script will run. nothing else matter.

    i tried
    1. OnObjectModify = script runs right after first letter typed/modified = not good
    2. OnObjectValidate = script run even without "enter" keystroke = not good
    3. OnObjectEnter = script run right after field activate/ no "enter" keystroke necessary = not good
    4. OnObjectKeystroke = script run with any keystroke not just "enter" keystroke = not good
    5. OnObjectSave = i dont know what this for = definitely not good
    6. OnObjectExit = script run when exiting field not by 'enter" keystroke = not good

    Warning: This is an Old Thread
    This discussion is older than 420 days. information contained in it may no longer be current

  2. #2
    Senior Moderator - FMT Preferred Developer Consultant - New York - Worldwide AHunter3's Avatar
    Join Date
    Aug 2006
    New York and Nassau County, NY, USA
    FileMaker Pro Software
    FileMaker Advanced/Developer 14, 13, 12, 11, 10, 9. 8.8, 8, 7, 6, 5.5 FileMaker Pro 8, 7, 6, 5.5, 5
    Windows & Mac
    Skill Level
    Last Post
    Local Date
    Local Time
    10:39 PM
    Last Active

    Re: run script with "enter" keystroke

    This is how you do it:
    4. OnObjectKeystroke = script run with any keystroke not just "enter" keystroke = not good
    YES good, if the first step in your script is to evaluate the results of Code (Get (TriggerKeystroke)).

    Enter is 10. (That's the REAL enter key, the one over to the far right on the numerical keypad). The Return key (the one above the right-hand Shift key) is 13.

    So if you only want your script to do something if Enter is pressed, the first thing you do is:

    If [Code (Get (TriggerKeystroke)) ≠ 10]
    .. Exit Script
    End If

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "Finding Matching Fields" that are "Open" by using the "Button" Command
    By CLattmann in forum FileMaker Pro 12 - All versions
    Replies: 2
    Last Post: 11-29-2012, 06:06 PM
  2. Portal of "Glossary" field with two columns, one "Spanish" and one "French"
    By LanguageAmbassador in forum Portal & Relationships
    Replies: 8
    Last Post: 02-20-2010, 07:01 PM
  3. Auto enter "data" fields
    By stuff03 in forum FileMaker Pro 8.5
    Replies: 3
    Last Post: 01-03-2008, 10:59 PM
  4. Prevent User from Pressing "Enter" to begin Find
    By PilatesBlackBelt in forum Find, Sort and Search
    Replies: 2
    Last Post: 07-26-2007, 11:34 AM
  5. Error #4 when IE user hits "enter"
    By cindit in forum HTML , CDML and Lasso
    Replies: 3
    Last Post: 06-20-2001, 06:12 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Welcome to the Original FileMaker Forum
With designated forums for almost every FileMaker topic...FileMaker Today is a FREE to join community where you can boost your FileMaker expertise, build better apps & solutions and interact with over 42,000+ FileMaker Developers from all over the world. If you're building FileMaker solutions, this is the place for you.
Follow FMT
We Are FMT
FMT is home of The World's leading FileMaker News Site, Worldwide Developer Directory, FileMaker Connect Community and so much more.