Jump to content

Recommended Posts

Posted

Greetings all:

I'm trying to code an effect where as a user enters their account name (to log into a FileMaker Pro database via WebDIrect), I want a button to appear ("Proceed") just after they enter their qualified name in the field, e.g., If their login name is Blivet, just after the user enters the letter "t"--the last letter of their login name--the Proceed button appears so they can continue with the login procedure. (There'd be a calculation in the "Hide Object When..." for the Proceed button to appear.)

I tried using the Commit Record script step (as a script trigger (OnKeystrokeEnter)) on the AccountName field, but I get a pop-up message from FileMaker Pro (see below) after every letter is entered. (Note: I have Dialog: Off and Skip data entry validation arguments set.)

Is there a way I can pull this off? Maybe a script isn't the answer, but a self-referencing calculation?

As always, your help is appreciated.

Screenshot 2025-01-31 at 10.10.47 AM.png

Posted

I see two problems with your request:

First, if you have a user named Smith  and another user named Smithson  there is no way to know when the user enters "the last letter of their login name" unless you already know who is trying to login (in which case why bother with a login procedure?).

The other problem is much more serious: it seems you are designing your own "login" procedure that works after the user is already logged in somehow (possibly as a guest?). This is an extremely bad and dangerous practice - see here why:

 

 

  • Plus1 1

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.