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

one button two functions

Featured Replies

is there a way this can be done using a script what i want is new record request and go to layout function but using only 1 button
 

Maybe Get ( ActiveModifierKeys ) can help you there.

I'm not sure that we have the picture of what you are trying to accomplish, but it sounds like you are wanting to have a button on the current layout that will take you to a different layout then you are on, and then open a new record for entry? If so, try this in your script:

 

Go to Layout by name

New Record Request

 

ps

 

If the layout is a different table, then you will need a relationship.

Edited by Lee Smith
ps

  • Author

Hello Lee Smith what i mean is in my current layout i can create a new record and a function that can go to another layout for example if i click this button i have this option create record or go to another layout

Are the layouts based on different tables? Same table? Do you mean to create a new record in the table on which the first layout is based and then go to another layout? If so, why? If you create a new record and immediately go to another layout, especially if the second layout is based on a different table, then your new record will contain no data. More information is needed.

When you say, "i have this option create record or go to another layout," what determines whether it does one or the other? Do you want to show the user a dialog box or what? If not a dialog, how does the user know what's going to happen? What would the label/text on the button say?

 

This sounds like something really simple, it's just not clear exactly what you're trying to do.

 

Maybe you're looking at the commands list in the button setup and wondering how you can do multiple commands. That's where you'd use the "Perform Script" command for the button, and the multiple steps would be in that script.

If you're saying that you want one button that creates a new record and then goes to another layout (or vice versa), you just put those steps in a script and configure the button to call that script.

 

If you're saying that you want one button to give the user the option to do two completely different things: please don't. That's bad interface design; what would you even label the button to tell the user what it does? Make two buttons, one for each behavior. If that doesn't fit in the current visual design of your layout, modify the design of your layout to accommodate two buttons.

 

If you really want users to be able to trigger two (or more) different behaviors by clicking on the same piece of layout, don't use a button. Create a pop-up menu on a global field, attach an OnObjectModify trigger to that field, and have the triggered script check what value the user selected to decide what action to perform.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.