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

Featured Replies

  • Newbies

When user come in, they will see the login page, enter userid and password then press "login" button, however, we want everything to be able to be done by keystroked as well as with the mouse. i.e. after putting an userid, using the return key should go to password filed, after putting the password, using the return key should log in automatically.

Any ideas?

Thanks all

Unfortunately, you can't really use the Return key in this manner, although you can use the Enter key instead. Return will always give a field a carriage return.

Howver, you can use a script that is something like the following:

Go to Field [ userid ]

Pause/Resume Script []

Go to Field [ password ]

Pause/Resumt Script []

# Rest of the login routine.

By using a script like this, the script will pause after entering each field. Pressing the Enter key will continue the script.

Chuck

Another alternative, if you're using FMP 6, is to use the Show Custom Dialog script step, which could then have two fields, one for the userid and one for the password, with a default button for logging in.

Show Custom Dialog [ "Enter your user name and password:", Field1: username, Field2: password (bullet field), Buttons: "Login"]

You can move from field to field with the tab key and activate the dialog box with either the Return or Enter keys.

Chuck

There is a way to do what you want, even without version 6 and its custom dialog boxes.

Chuck is right about the return key - at least as far as browse mode is concerned, but he has overlooked the fact that the return key *does* continue a script in find mode.

Therefore the solution to your problem is to have your login script lock the layout down and place the user temporarily into find mode while the script is paused, and provide them with ordinary text fields (not globals) to enter their details into (globals are not accessible in find mode).

Then immediately after the scripted pause, have your script transfer the contents of the text fields to globals and reinstate browse mode. BTW, you don't need additional text fields for this purpose - you can use any two existing text fields from within your solution.

Attached is a demo file called 'Use_Return.fp5' which shows the technique in action. cool.gif

Use_Return.zip

Create an account or sign in to comment

Important Information

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

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.