
Time Picker
by Matthew LeeringI 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
- Copy Scripts
- Create A Layout Named “Time Picker”
- Copy/Paste Layout Objects to “Time Picker” Layout
- 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
Nice, not only was it useful but I learned a few scripting lessons.
Thanks
Glad to hear Jeff.
๐
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
Using a popover for this is a great idea Oreste!
I think I’m going to implement this as well.
[…] See on http://www.modularfilemaker.org […]
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 ๐
are you on windows? and did you forgot to move the file out of the zip?
Todd
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
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/
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