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.

can you ask for a password before running a script

Featured Replies

I need a script that will allow me to require a password before a script is run. Is this possible? If is possible, can you help me with this one?

Thank you very much in advanced.

Regards,

Carlos Henriquez

Where will the password(s) be stored?

Yes, it is possible.

A solution could work something like:

Script step one:

Go to layout (a layout on which the client is asked to enter a password)

Client clicks button.

Continue script or a new script:

Do a search on the password. You would use an If conditional such that password failure navigates the client to a warning, the page from which the client went to the password entry page, a closing of the application, etc; while password success allows your script to run and navigates your client to whatever layout is appropriate to your solution. If the password is in the same dbfile there can be a layout which you would of course secure, "script password layout", which has just the password data (set field likely will be useful to you). You would of course freeze the window while running this script. Or the password could be in a separate dbfile and verified with an external script. Again you would probably want to freeze your window and use other normal closed solution steps and security. If this is shared multiuser solution, you will of course take the security steps necessary for the network conditions under which it is processing.

Good luck,

If you are using FMP v6, this is a very good use to put the Custom Dialog script step to. It will flash up a dialog asking the user to enter a password, and the field(s) can be configured to use a bullet font for security.

The password that the user enters can be placed in a global field, and subsequently checked by your script before permitting the remained or the script to proceed. Viz:

Custom Dialog [Please neter the password:... ]

If ["not gPassword = "Sesame"]

Exit Script

End If

Rest of your script here <<<<

The above shows a hard-coded password, but you could get more sophisticated and look-up a user specific password via relationship (with or without encryption) from passwords stored in a related db file.

If you're running a version earlier than v6, the Troi dialogs has a password function.

Steve

True, As does SimpleDialog from 24U - of which, I note, there is a new version just released (v2.0) which looks like quite a step up... !

  • 1 month later...
  • Author

Thank you very much for all of your answer. I would like to apologize for not thanking you before for your help. I am a newbie to this forum. I am going to try these suggestions and see what I come up with. Thank you again.

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.