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.

Disabling scripts on specific layouts

Featured Replies

Good afternoon!

In my database I have a search layout with a field on it where you can enter you search criterias etc. Problem is if I'm on that layout and I go to my menu and click Records > Show all or > Browse last/first, the records appear in my search field and I don't want that.

My question is, is there a way to disable the Show all/Browse etc scripts when I go to the Search layout?

Vilem,

Your question is a bit short on details but perhaps you could add a step like this to the beginning of your scripts:

If Status(CurrentLayoutName) = "Whatever"

Do this

End If

  • Author

Ok I'll explain in details:

I am on my Search layout, which is only supposed to be used to search specific criterias throughout my database via a "search field". That field is not supposed to show any data, except if you enter some data yourself to launch to search. The problem is, when I am on that Search layout and instead of typing something in the field, I go in the menu and chose Records > Show all, the records appear in the search field and I would like to prevent that because that field should only be used to enter criterias for a search and not for displaying any of them (When you do a search, the results are displayed in the List layout).

Maybe there's some way to prevent that field from displaying records or like I asked earlier, to disable the "Records > Show all" script when I am on that Search layout.

Edit: I forgot to mention, the Records > Show all is a script that I made because I am running my solution in kiosk mode using a custom made interface.

I think the way a lot of developers get around this problem is to base the search layout on globals. What I mean is that your searching layout doesn't contain any fields that contain data, rather it is just a bunch of globals that take the place of your existing data fields. The users wouldn't notice the difference.

Then you script the find operation to copy the values in the globals to the equivalent data fields.

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