Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Featured Replies

Hi all!

I'm trying to make a more firendly way of entering time-of-day data into two fields, let's call them TimeStart and TimeEnd.

What I'd like to have is an interface which:

1)allows typing the time in continuoous form, ommiting the separator,

2)allows for setting the time by using two buttons beside the time field (increase/decrease) for a specified increase/decrease time step

3)cycles between 00:00 and 23:59 (time-of-day strict data type)

Currently, I have a script for the increase/decrease buttons by using a Set Field script step attached that uses the following formula:

Time(hour(timestart);minute(timestart)+15;"00")

But I have the problem time doesn't cycle in the range 00:00-23:59 and keep increasing.

Do you have any ideas?

Re your script, try =

Mod ( TimeStart + 900 ; 86400 )

  • Author

Re your script, try =

Mod ( TimeStart + 900 ; 86400 )

What does that do?

It adds 900 seconds to TimeStart, and rolls back to 0 when the result crosses midnight.

  • Author

It adds 900 seconds to TimeStart, and rolls back to 0 when the result crosses midnight.

Ok but I can't understand where this calc should be put.

Also, what about subtracting 15' from the time?

I can't understand where this calc should be put.

In the Set Field[] script step.

Also, what about subtracting 15' from the time?

Use minus instead of plus (how cool is that?).

Please let me know how you achieve #1 and #2

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.