Time Picker

by Matthew Leering

TimePickerPopup

I saw that a date picker has already been posted to this site, so I figured that a time picker was in order.
This one’s pretty simple, looks half-decent, and is incredibly easy to implement.

Installation

  1. Copy Scripts
  2. Create A Layout Named “Time Picker”
  3. Copy/Paste Layout Objects to “Time Picker” Layout
  4. Attach “Display Time Picker” As An OnObjectEnter Script Trigger, or call it from a button.ย If calling the script from a button, please also specify the fully qualified field name to modify as a parameter

Download –>ย http://www.modularfilemaker.org/wp-content/uploads/2013/09/Time-Picker.zip

11 responses to “Time Picker”

  1. Jeff says:

    Nice, not only was it useful but I learned a few scripting lessons.

    Thanks

  2. Oreste Schiavone says:

    I changed this to work with a pop over. You need to put the field as a script parameter. You need to change the Close Window script to close the popover instead. Then you go to the Display time picker script and disable the new window scrips section

  3. Zach says:

    I downloaded the file, but I didn’t have access to the scripts. It said the object was not modifiable. I might be missing something though ๐Ÿ™‚

  4. Great little addition for my “Reminders”. Implemented it as a popover in 10 minutes.
    – In Display Time Picker script: Disable (or delete) the Open and prepare a new window section, and instead go to Object “Time Picker” (Popover Name).
    – Popover Title with $$Pick_Time_Title
    – Set Time Increments To Hours script modified: Disabled Set Window Title and instead Set variable $$Pick_Time_Title
    – Set Time Increments To Minutes script modified: Disabled Set Window Title and instead Set variable $$Pick_Time_Title
    – Clear Time Picker Globals modified: Disabled the last variable (Modal window not necessary anymore) and added Set variable $$Pick_Time_Title = “”.
    and that was it.
    Thank you
    Thierry

  5. Matt Brain says:

    Hi, I loved your time picker but really wanted it to work better web direct without hijacking the open window – here is a link to a version that I modified from yours that works perfectly in web direct or filemaker pro utilising popovers. It even runs from a portal row. Thanks for doing all the hard yards to make this possible.
    Matt Brain
    http://www.irenabyss.com.au/modifying-matt-leerings-time-picker-to-work-in-popovers-and-portals/

  6. Steve Redpath says:

    Love the script, is there a way to choose AM or PM as at the moment its only from 12pm onwards you can choose

    • Great!
      Glad you’re going to be able to get some use out of it.
      I believe I had it set up so that if you click on the AM/PM in the middle of the clock, it will toggle between the two.
      ๐Ÿ™‚

      HTH
      Matt

Leave a Reply

Your email address will not be published. Required fields are marked *