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.

Can going to a layout trigger a script?

Featured Replies

Hi

I have layouts that a different size. I wondered if I could somehow script a calculation that dictates the size of the window whenever I go to a specific layout? If it can how can I do it.

Say I have 2 layouts "layout1" and "layout2"

When I go to layout1 I would like the window to be small

when I go to layout 2 I would like the window to be big.

It must be something like If Layout = "layout1" then. kind of thing

Looking for an answer

Put your calculation into a Web Viewer using ZippScript to trigger your script.

If you use a "Button" to go between Layouts you could use that Script.

You may be able to prevent the Users from using the Layout Menu, and hence bypassing the Button, by removing the Layout from the Layout Menu.

Good Luck.

Garry

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.