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.

allow / disallow field modify script

Featured Replies

  • Newbies

I have a simple inventory database, where I want to use a button to set a field to either allow modification, or deny modification acording to the previous state. I just can't find a way to script the allow or disallow modification of a field. Am I completely missing it, or is it trickier than I first thought?

You need another field to record the previous state.

Then you can test the value in the field using an IF step in your script.

You could also use the field to change the legend on your button!

  • Author
  • Newbies

I am sorry, I was probably not clear. I do have a field to record the previous state. What I have so far is a script that is run from a button that when clicked, changes from modify mode to lock mode. In lock mode, I change my field text color to red, in modify mode, it changes back to black. That is all working great. All I need is a script command to lock one particualar field in a form, so that it cannot be edited. Essentially the same as checking and unchecking the "Prohibit modification of value during data entry". The other option I thought about is having two fields overlayed, one that is locked, and one that you can edit. But I don't know the command to show/hide a field. Hope this all makes sense.

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.