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.

Execute script upon opening a layout?

Featured Replies

Hi there:

Is there a way to attach a script to a layout such that just opening/visiting the layout launched the script?

Thanks

Kurt

One way to do it is to just attach the script to whatever button you click to get to the layout. But this isn't foolproof as the user might get there by seecting it from the status area, or being taken there from a related file, etc.

So a new way I'm playing with is to use the example plugin that allows you to start a script when a field is changed. Create an unstored calc field that launches your script. Put this on the layout. When the layout is opened the field recalculates (since it is unstored) and triggers the script.

See the attached example.

HTH,

Dan

test.zip

  • Author

Thanks Dan!

That sounds promising. (And you are right, the user will most likely get to the layout without a button as it is the manin/switchboard setup for the system.)

I DL'd your example and will try it tomorrow when I am fresher and have had a chance to try and figure out the event trigger thingee.

Thanks

Kurt

I always use navigation scripts to switch layouts, and disable access to the layouts in the status bar.

  • Author

Ender:

Do you then attach those nav scripts to buttons, or do you run them from events?

Kurt

Buttons in a typical tabbed interface are the main navigation. Some process scripts will also call a nav script as a last step to put the user back to a different layout.

As an example, if the user's security level for a particular area is read-only, then the nav scripts brings up the view layouts. If the user has read-write access, then the nav scripts brings up the entry layouts.

  • Author

Ah, that makes sense.

Am now toying with using a new window as a floating menu. Ought to be fun.

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.