July 7, 200322 yr 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
July 7, 200322 yr 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,
July 7, 200322 yr 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.
July 7, 200322 yr If you're running a version earlier than v6, the Troi dialogs has a password function. Steve
July 7, 200322 yr 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... !
August 22, 200322 yr 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