August 26, 201312 yr 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
August 26, 201312 yr 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 August 26, 201312 yr by Lee Smith ps
August 26, 201312 yr 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
August 26, 201312 yr 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.
August 26, 201312 yr 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.
August 27, 201312 yr 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