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.

Featured Replies

hi everyone....please help me in a situation:

how i can remove browse mode from a field through script.?

Could you explain what you're trying to accomplish?

I ask because you don't need a script to prevent someone from entering a field in Browse mode. It's a setting you can choose in the Inspector.

  • Author

Actually scenario is:

we are entering the detail information of a company and an individual. when any body choose company through checkbox, then the fields regarding information of an individual should become non-editable.

such as:

Name: --n/a--

There are a few ways you might accomplish that, none I would call extremely elegant. One way that wouldn't be too unreasonable is to make a tab object with 2 tabs. Give each tab an object name using the inspector, e.g. "edit" and "locked". On one tab, place the editable fields, and on the other place a copy of the fields, and use the inspector to disable entry in browse mode as David suggests.

You can then hide the tabs by setting their label and line width to zero. Now create a script that goes to the appropriate tab based on the company checkbox, and set it as a script trigger on that field.

I'd probably go with an OnFieldEntry script trigger.

I have a generic one I can use on all fields. This is the basic script:

Commit ( locked )

# This script will commit a record when the parameter is true.

Allow User Abort [ Off ]

If [Get ( ScriptParameter)]

Commit Record[]

End If

Assign that script to an OnObjectEntry trigger and pass a parameter that's testing whether a company has been chosen ( i.e. not isEmpty ( _fk Company ID ) ).

That's stop the entry. If you want some indicator of whether it's editable, I'd use conditional formatting to make the field fill gray based on the same criteria you're passing to the script.

This is what I do as well, David, except I use Go To Object [ dummy ] where dummy is any text object. We frequently use text objects for declaring variables and they ride at the top of layouts and only display in layout mode using conditional formatting: Get ( WindowMode ) < 4 with font set to 500.

I prefer Go To Object [ dummy ] because it does not commit the record. Go to dummy works for other occasions as well. :^)

Nice solution, David -- and you can apply the script trigger to multiple fields at once.

I agree with LaRetta, I wouldn't necessarily commit the record.

great David..It's working.

  • Author

Thanks David. Its working.

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.