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.

Switch forms based on screen height

Featured Replies

  • Newbies

I'm designing an application that will be distributed to peole with different screen resolutions.

I created a calc field with status(currentScreenHeight). I then created another calc field, using "IF", that returns a "0" value if height is 480 and a "1" value if height is not 480.

Now I need to have a script that takes me to the form that I set up for 640x480 resolution when the calc field has a value of "1" and takes me to another form if the value is "0".

Well... this is where I'm stuck. Any suggestions?

Make a script that goes to the correct layout based on the screen height:

if[status(currentScreenHeight)=480]

Go To Layout(Layout1)

else

Go To Layout(Layout2)

End If

Then select Document preferences from the Edit menu. Select "When Opening...perform script", and pick the above script.

[This message has been edited by BobWeaver (edited January 13, 2001).]

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.