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.

Exit Script Question

Featured Replies

I want to perform a script, within a script...  I want the first script to run and I have an If step in there that ends with Exit Script.  When it exits the script, it goes to the next step in the parent script.  Is there a way to have a complete exit script? 

 

Here is what I am trying to accomplish...

I want some scripts to require a password to run.  If there is a way to "Require Account Password" type step, I'd love the option.  I don't believe there is, so I have a script that runs a check.  Rather than cut and paste the steps on each script, i'd like to just "Perform Script: Password" on each one.  

 

Any advice would be appreciated.  Thanks!

Try Halt Script.

You could use the Re-Login script step to ask for a password.

 

But if the user is already logged in, why bother? Is this a shared computer, where different people walk up and enter data? If not, then I would think it makes more sense to simply test for the account as you say, e.g., with Get ( AccountPrivilegeSetName ).

 

If you're doing that in a separate script, there are various approaches. For example, you could pass the required privilege set name in as a script parameter. The Password script could then compare that to the actual privilege set, and Exit Script with a result of "pass" or "fail". You'd then use Get(ScriptResult) in the parent script to Exit or proceed.

 

Generally I avoid Halt, it feels messy to me. However, a password sub-script like your is one place where I might use it. So, rather than Exit with a "fail" result, you could simply Halt, and it would never return to the parent script. I've worked with a solution like that, and I put HALT in the name of the subscript to remind me that that might be the result if I called it.

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.