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.

Form, List, and Table button to multiple layouts

Featured Replies

I have modified a FMP template that has buttons that take the user to the Form View, List View, and Table View. I have added other tables to the template and, therefore, have other layouts. Is there a way to script these buttons so that they will show the form, list, or table depending on the layout? Or, do I have to have a seperate script for each layout? I presume it may have something to do with the Get (Script Parameter) function, but I am new to this function, so any advice is most welcome.

Thanks.

dan

depending on how you have your layout designed it may not be aesthetically acceptable to use the simply layout views to toggle between the default views. In this light many developers choose to create separate layouts tailored to each view, so that they can control and rely on static elements and and placement on each layout dependent on the view.

Then using scripting just going to the layout you choose and not bother with changing view states.

However there is a Get ( LayoutViewState ) that determines current state.

  • 0 (zero) if the database file is in View as Form view
  • 1 if the database file is in View as List view
  • 2 if the database file is in View as Table view

  • Author

Thanks Ocean. I appreciate your comments in the first paragraph as well as the info on the Get (LayoutViewState) function.

dan

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.