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.

Default buttons in custom windows

Featured Replies

How can I implement a default button (one that is automatically selected by hitting the Enter button) in a custom window? In other words I have designed a custom window with several buttons and would like to close the window by simply hitting the Enter button rather than using the mouse to click on the "Close Window" button.

You want to close the window simply by hitting ENTER but the window is nothing but buttons? If User has their hand on the mouse anyway, a click (whether on a button or X) seems simpler than reaching up to hit the ENTER.

Well, in vs. 8, you can tab to (and activate) a button. You can also use an event-trigger plugin. Or you might be able to take advantage of Find Mode[] which will activate upon ENTER (as I've seen Comment do). But, if the only thing on the window is buttons, it seems simpler to have each button end with a sub-script of Close Window[] after it does its thing...

You can also ignore the window and let it disappear behind and/or close it at your leisure or let it remain in the background to be brought forward again when needed. How often will this window be called? If there are no fields on this window layout then you won't be dealing with record-locking issues if you choose to leave it open.

Does the User enter data into fields in this window also? If we understood more of your process and purpose here, we might have better suggestions. :wink2:

LaRetta

  • Author

Thanks for the quick response. The custom window which opens when the user clicks on a Line Item from the main Invoices window contains additional input fields as well as several custom buttons. One of the buttons is always the "Close" button which closes the window enabling the user to return to the main Invoices window.

At the moment you need to mouse click on the "Close" button, but I was wondering how I could achieve the same action by simply pressing the Enter button (similar to how a dialog window works with a default button).

You could make your script open the new window and pause. When you have a paused script, hitting the Enter button will resume it, so the next step after the pause should be to close the window. The 'Close Window' button should be set to Resume script.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.