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.

Disabling a button

Featured Replies

hello all,

the title says it all. Is there anyway to disable the use of a button by using a script.

thx

Make the first script step Exit Script or Halt Script. If you want to conditionally disable it, use

If [yourTest]

Exit Script

End If

{remainder of script steps}

Or even simpler and IMHO cleaner...

If [ not yourtest ]

{remainder of script steps}

End If

True, but I try to avoid having too many steps within Ifs, especially if there are several nested Ifs within the remainder of steps. I think it makes it cleaner to keep the remainder steps out of the overall If to make it clearer. This may be a holdover on my part from version 5, which doesn't have the Else If step and does that whole indenting off the screen deal when you have a large number of nested Ifs. Not to mention how difficult it can be to line up Ifs with their related End Ifs.

There is something to be said for both approaches, especially with longer scripts with more nested if's I would use the "If(true) exit" approach for clarity, while for shorter scripts the "If(untrue) [script] EndIf form" is more elegant. But for a short script such as this it hardly matters.

Peter

Actually, we have no idea how long the script is. So it is up to gug to determine which one fits more appropriately. :D

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.