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 control of field/control behavior

Featured Replies

It seems that I too often need to duplicate a layout simply to have a version with a different behavior on one or more fields. And duplicate layouts are expensive to maintain. In the simplest case, it would be nice if I could control whether a field is enabled in browse mode or not.

Have you looked at Field Behaviour? Turn off entry in Briowse mode and Find mode.

  • 8 months later...
  • Author

I missed your response. I know about field behavior. The point is that I have to create two layouts to have a field sometimes enabled and sometimes not enabled for entry, rather than being able to control that with a script.

There are ways of controlling fields directly but it would depend upon the purpose here. For instance, are there certain privilege sets which should have access and others not? Or would it depend upon the value in another field?

For instance, if you can give up the ability to tab to the field, you can turn off entry via browse and attach a script directly to the field which, if certain conditions AREN'T met, will do nothing (no entry) but if the conditions are met, the button attached would be simple: Go To Field [ that field ]. You can also control access via privilege but, although I've played with that concept, I haven't used it extensively (it feels harsh to me).

Usually my 'field protect' scripts provide a message and look something like:

If [ 'whatever criteria not allowing entry' ]

Show Custom Dialog [ "Sorry but you can't" ]

Else

Go To Field [ that field ]

End If

LaRetta :wink2:

Edited by Guest
Added End If (blush)

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.