Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7768 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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,

Posted

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.

Posted

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...
Posted

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.

This topic is 7768 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.