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.

Back button

Featured Replies

  • Newbies

Sorry if this seems a bit stupid - I'm a super neewbie.

I'm trying to make a script for a 'back' button that will take the user back to the layout they just came from. I can't specify the destination layout explicitly because the layout with the 'back' button can be accessed from several locations.

Any help would be much appreciated.

Hi Jimbo and welcome

Set up a global field - 'G_Lastlayout'

Whenever you move out of a layout perform a script that has one line

Setfield [G_Lastlayout;Get(LayoutNumber)]

Attach a script to your 'back' button also with 1 line

Go to layout(G_LastLayout)

and specify layout number by calculation (bottom r/h/s of script window) when you specify this step

Hey presto! your back button will always take the user back to wherever they came from

HTH

Phil

Edited by Guest

A slightly fancier version of what Phil said is to use the global field as a stack so that you can back up many levels like in a web browser. When you go to a new layout, set your global like this:

Setfield [G_Lastlayout;Get(LayoutNumber) & ¶ & G_Lastlayout]

When you click the back button, it performs this 2 line script:

Go to layout(LeftValues(G_LastLayout;1))

Setfield [G_Lastlayout;MiddleValues( G_Lastlayout;2;99999)]

  • Author
  • Newbies

Hi guys,

Thanks for the help, and the warm welcome.

I've implemented Phil's suggestion and it worked a treat. I even had a rough idea of what I was doing!

Bob's 'multiple backs' solution looks cool, but I think I'll walk for a bit before I try running. :

Something for the To Do list.

Cheers

Jim

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.