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.

script elements to delay record creation.

Featured Replies

Hello again, 

I have another question for my fire dept database.  

We have an EVENT REPORT layout and table that stores all the data from our fire calls.  Linked to our ATTENDANCE table via a "kp" are attendance records for each firefighter. 

The chief of the department wants a time delay on their ability to sign in.  Sign in was usually allowed as soon as the call was created and until the chief clicks the CLOSE REPORT button on the EVENT REPORT layout which changes a REPORTSTATUS field to "0".  Then the attendance add button doesn't work for some users anymore.  

My question is how to I add in some script elements that would also not allow the members to sing in to a fire call for the first 15 mins after the report was created.   I do have a field with the creation time already, i just get hung up with the double validation on the closed report status and then also the time delay.  

here is what I use now... 

Any ideas or guidance would be great.  

Thanks

Chris

 

Screen Shot 2017-12-23 at 6.20.27 AM.png

Create a boolean calc field  that is set to true when the current time is 15 minutes greater than the creation time. You could make that boolean field 'enable sign in' and have it set to false when the chief stops signing in. Then you only have to consider the one field for allowing firefighters to login.

  • Author

Thank you very much.  I added these elements and things are working great.  Thanks for the ideas!

Chris

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.