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.

newb:: Help on script

Featured Replies

Hello all,

I am trying to create a button that goes to a specific layout on a related record. Can anyone help with the script (detailed....) Thank you smile.gif

Put your button in the first portal row where the fields are, and use the Script Step Go To Related Record (GTRR). You can find that step either in the Button Format window, or in the Script Steps in ScriptMaker.

HTH

Lee

cool.gif

  • Author

Thanks Lee, but I might be doing something very wrong...I did the thing you told me to, but still takes me to the wrong layout frown.gif.

My goal: Is to make the button go to a specific record/ layout

I have a record which I called it portal- it contains all the buttons that go to the specific records. In addition I have a record with different layouts where some information is confidential to others. So the purpose of the button, is to send the user to the specific layout.

I might of done this in a complicated way. Any other ideas of doing it, would be greatly appreciated smile.gif. Thanks.

Well, then just add another script step to specify the appropriate layout for the selected record.

  • Author

By doing what you have told me Lee, it just send me to the actual record. How about the specific layout? frown.gif.

  • Author

Can you specify, plz? I am a newbie after all smile.gif. thanx

Because you need two steps here, you will need to write a script.

Go into the Scripts menu and choose scriptmaker.

Create a new script.

You need to add two commands.

Go To Related Record [ychoose the portal relationship from the options]

Go To Layout [choose the correct layout from the options]

Now, come out of scriptmaker and in Layout mode, double click on your button in the portal.

Choose the Perform Script step and then in the options choose the correct script.

This should now go to that record AND change layout for you.

HTH

  • Author

Hello Andy,

I did what you told me to. But on

"Go To Layout [choose the correct layout from the options] "

it doesn't let me specify the specific layout(I mean it doesn't show the layout i want it to go to).

  • Author

here is what i am talking about frown.gif

pic2.jpg

I bet the problem is that he needs to go to a specific layout in the RELATED file.

Ronnie, you will need to create a 2nd script in the related file that has a "goto layout" step. Then in your first script, call your new script in the related file.

  • Author

hello Ted,

Could you give a little more details, cause i might be doing something wrong. Because from what I understood of what to do, the related file doesn't even open frown.gif.

Thank you smile.gif

The main script:

Go to Related Record [show only related, "Style Costing"]

Perform Script [External, related file, "Go to Layout"]

The external "Go to Layout" script:

Go to Layout [style Costing]

Toggle Window [Maximize]

  • Author

Ok, I did that but on the external- because on the goto layout command, I can't specify "Go to Layout[style Costing]

on the specify option, it just give me 5 options:

1-layout 1

2-layout 2

3-layout 3

----------

layout # from field

original layout

It doesn't give me the option for

"style costing"

sorry, for the struggle frown.gif

I just used Style Costing as an example. You will use whichever name is appropriate for the layout you want to display.

  • Author

I understand that you used style costing for example; and that is where i wish i was at (have style costing: layout #5,or 4 or 3 in my specified option) but I don't have that option: any ways here are the file: Please take a look...

That doesn't appear to be a valid zip file. Edit your message and try attaching it again.

  • Author

here are the file 2 files: total of 1.2mb/

pw: <leave it blank>

StyleCosting.zip

  • Author

2nd file: i am trying to link sales: to style costing last layout

from main gate to style costing

If you see these two files: I am trying to click on the <price button> which takes me to <related-record(style costing)/layout $ales>

on the script (1-main gate)

I input as described on past posts:goto layout

and subscript is: goto sales

please ignore the other parts.... database is not fully complete, I gotta figure somethings out before i procceed smile.gif

Your TOLAYOUT1 script already has it. Just call that script in your other file, after the Go to Related Record step, using Perform Script, select External, navigate to the file, select it, then select its TOLAYOUT1 script.

  • Author

thanks a lot smile.gif... it works.... I finally got it....

Thanks to everyone also smile.gif....

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.