Skip 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.

Locking Down (INSERT CURRENT TIME) Scripts

Featured Replies

I am working on a timeclock module that has a simple START & STOP button.

Each button activates a script that inserts the current time into a Start and Stop Field.

I track the elapsed time with a simple calculation.

Is there a way to insert these values with a button script and prohibit modification

after the button has been pushed?

Thanks for any help here.

Jarvis

Since START and STOP are filled via script; and since you have vs. 7, use Field Behavior and disallow entry in Browse and Find. Your script buttons can still fill the fields but Users can't enter them. If, for some other reason, you need Users to have access to this field, it can be controlled via extended privileges but what you've described wouldn't require that kind of lockdown.

If they need the ability to clear the fields, provide a CLEAR (or RESTART) button also. In your Start and Stop scripts, you may want to check 'Run Script with Full Access Privileges.' If you don't want the buttons to change the start and stop times after they have been entered, just change your script. Personally, I would use Set Field [ ] instead of Insert Current Time something like:

Set Field [ If(IsEmpty(Start; Get(CurrentTime); Start) ]

... which would insert the current time if empty but wouldn't change if a time already exists in the field.

  • Author

Thanks alot Moon Shadow!

You gave me more information than I was hoping for.

Jarvis

"You gave me more information than I was hoping for."

As Queue would say ... My bad? I HAVE been getting a bit long-winded lately. wink.gif

  • Author

MoonShadow,

More help please.

I like the SET FIELD approach but I can't figure out how to use Field Behavior & disallow entry in Browse and Find.

Thanks,

Jarvis

Select your START time field. Right-Click and select Field Behavior. Unclick Browse and Find. smile.gif

  • Author

Neat trick!

Thanks.

Jarvis

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.