4 Replies Latest reply on Jan 18, 2013 12:40 PM by Stephen Huston

    How to lock in a user

    ChrisG

      Dear FMP gurus

       

      How would I lock a user into a window? I have a system where people can fill in questionnaires. A person with the correct access privileges navigates to the questionnaire, opens it on screen and then allows the customer to fill in the required fields. Once the customer has completed the questionnaire, I do not want him to be able to close it and then start looking around the database. If the customer wants to close the window he is asked to enter his user name and password. The thing is he can still move the window and click on another window etc. I want him to be stuck in the questionnaire until I enter the correct username and password.

       

      thank you

       

      Chris G

        • 1. Re: How to lock in a user
          s

          Which version of FileMaker? FM12 has new window styles, which includes "Dialog (Modal)" which will do what you want.

           

          http://fullcityconsulting.com/filemaker-12-window-styles

          • 2. Re: How to lock in a user
            ChrisG

            Sorry, I always forget to mention which version of FM I'm using. It is FM12. I am aware of modal windows, I'm just not sure how to use it properly.

            • 3. Re: How to lock in a user
              LabsRock

              Hi Chris,

              I think I've had similar situations and, assuming your are in a script when taking the user to the questionaire, you could try setting allow user abort to off, pause the script on the questionaire, and then when resuming the script you close the window.  This should keep the user locked into the questionaire window (toggle window to close status bar and lock) until they perform whatever action you want before exiting the window.  However you'll need to test this very carefully because it can be tricky and I always have an emergency exit.  Usually this is just a Cancel button that closes the window, possibly deleting an incomplete record if necessary.

               

              Hope that helps.

               

              Craig

              • 4. Re: How to lock in a user
                Stephen Huston

                Yes indeed! Be sure to add a button to the layout that can get you as the developer out of the modal window without risk of being stuck there, or you may have to perform a Force Quit, which can be risky for the file's health and welfare.

                 

                Build the cancel/escape button on the layout or into the scripted window navigation before you start testing the modal window. Many of us learned this the hard way when first trying the new Modal windows.